-
Notifications
You must be signed in to change notification settings - Fork 20
Make error!() logs shorter, label log location, fix warnings #79
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
Conversation
Changes since last review
Samples
|
ali-behjati
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also bump the version before release?
Motivation
We've seen instances of massive error log volumes coming from the agent. This was made significantly worse by the multiline error backtrace output provided from the
anyhowpackage. This change alters mosterror!()logs to only use the concise single-line error messages and separates backtrace printing todebug!()logs.Additionally, the error locations tend to be hard to track, which is fixed by adding
use_file_locationto the logger constructor. This should automatically annotate each log message with file/line location information.Finally, two simple warnings are fixed to clean up compilation log output.
Testing