-
Notifications
You must be signed in to change notification settings - Fork 96
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
Debugging improvements #3301
base: main
Are you sure you want to change the base?
Debugging improvements #3301
Conversation
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.
Most of the changes make sense, but I didn't understand why some error logs moved to the debug level.
tracing::warn!(?err, "failed to solve auction"); | ||
tracing::debug!(?err, "failed to solve auction"); |
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.
Why not at least info here?
tracing::warn!(?order, ?err, "failed to quote order"); | ||
tracing::debug!(?order, ?err, "failed to quote order"); |
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.
Ditto.
tracing::warn!("bad token detection for {:?} returned {:?}", token, quality); | ||
tracing::debug!(?token, ?quality, "bad token detected"); |
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.
How else can we detect that the token was marked as bad?
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.
I think it looks ok, should improve on filtering info
log level.
Description
This PR tries to improve the usefulness of our logs a bit.
Changes
warn
intodebug
logs since they usually don't indicate a real problemdebug
intoinfo
logs to starting making the querylog: "info"
return a good high level overview of each componentHow to test
mostly check logs when running the e2e tests