-
Notifications
You must be signed in to change notification settings - Fork 37
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
Set journald priority level to 3 (ERROR) for exception backtrace #951
Comments
Could it be journald that's adding that |
Yes, I think you’re right. It’s probably default value for everything coming from stdout. |
WDYT about making it single line? |
Sorted it in the open PR. apart from "Unhandled exception", where is that logged? |
Not sure if we can do anything with that? @spuun what do you mean making it a single line? |
IMO we can live with that. We should make sure to handle all exceptions.
Make log entries single line, i.e. not having line breaks in the backtrace. |
I'm a bit sceptical to single line backtrace.. Maybe if we have a way to make it as readable |
I found a way of handling it for |
Yes, but for a log aggregating service it may be worse. If you want to count errors or something a multi-line error will be counted as multiple errors. |
Further enhancement once #950 is in, example output here is based on #950.
We set correct level/priority for the log row (3 = ERROR):
lavinmq/src/lavinmq/vhost_store.cr
Line 94 in 7f85d32
But then we print out the exception backtrace, all with default priority (6 = INFO).
It would be great to get that with the same priority as the log message (or always ERROR).
The text was updated successfully, but these errors were encountered: