Skip to content
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

aws_iot_logger: refine the log entries merging logic. #21

Open
Bodong-Yang opened this issue Nov 21, 2024 · 0 comments
Open

aws_iot_logger: refine the log entries merging logic. #21

Bodong-Yang opened this issue Nov 21, 2024 · 0 comments

Comments

@Bodong-Yang
Copy link
Member

Bodong-Yang commented Nov 21, 2024

Now we push log and sleep <interval> even when we merge very little logging entries.
We can refine the condition of pushing log as follow:

  1. (current logic) push log when merged entries reached threshold. If queue raises Empty exception, push log immediately.
  2. (new) if cannot reach threshold(queue raises Empty exception), still keep retrying with 0.1 second of interval at most 10 times.
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

1 participant