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

Log handler fails on long messages #5

Open
StephanErb opened this issue Apr 4, 2016 · 0 comments
Open

Log handler fails on long messages #5

StephanErb opened this issue Apr 4, 2016 · 0 comments

Comments

@StephanErb
Copy link
Member

If a log message is larger than a UDP package, the underlying syslog handler will fail

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/handlers.py", line 847, in emit
    self.socket.sendto(msg, self.address)
error: [Errno 90] Message too long

A safer option than not logging at all, would be to truncate the message.

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