Skip to content

Empty http requests being sent when restrictedToMinimumLevel is set #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lawsonmcw opened this issue Feb 19, 2025 · 0 comments
Open
Assignees

Comments

@lawsonmcw
Copy link

lawsonmcw commented Feb 19, 2025

When restricting messages to a level of Information and a Debug message is written, empty payloads will be generated. I think the OnEmptyBatchAsync() method needs to simply return rather than calling EmitBatchAsync().

public Task OnEmptyBatchAsync() { return Task.CompletedTask; }

@konradkaminski konradkaminski self-assigned this Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants