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

Logging/fixes tweaks #548

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Logging/fixes tweaks #548

wants to merge 3 commits into from

Conversation

Ktmi
Copy link

@Ktmi Ktmi commented Mar 13, 2025

Closes #543

Summary

Some basic tweaks to logging.

  • Set max message size limit on default syslog handler to 16000 characters. Messages longer than that will be truncated.
  • Made it so logged tracebacks will use newline \n, instead of replacing it with , .
  • Moved problematic log statement log to DEBUG, and replaced with a far shorter version at WARNING

Local Tests

Logs work as expected, the 16000 character message limit does indeed stop messages from causing a crash when logging to the syslog. On my system the max unix socket message size is 212992, and could accommodate significantly larger messages than 16000. This number can be adjusted, if desired.

End-to-End Tests

Not relevant to E2E

@Ktmi Ktmi requested a review from a team as a code owner March 13, 2025 19:48
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

Successfully merging this pull request may close these issues.

bug: kytos.core.retry before_sleep(state) func can blow up when the payload is too large
1 participant