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

Debugging improvements #3301

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Debugging improvements #3301

wants to merge 7 commits into from

Conversation

MartinquaXD
Copy link
Contributor

Description

This PR tries to improve the usefulness of our logs a bit.

Changes

  • turned some warn into debug logs since they usually don't indicate a real problem
  • turned some debug into info logs to starting making the query log: "info" return a good high level overview of each component
  • slightly altered existing log messages
  • added some new logs

How to test

mostly check logs when running the e2e tests

@MartinquaXD MartinquaXD requested a review from a team as a code owner February 28, 2025 14:27
Copy link
Contributor

@squadgazzz squadgazzz left a 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");
Copy link
Contributor

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Comment on lines -59 to +55
tracing::warn!("bad token detection for {:?} returned {:?}", token, quality);
tracing::debug!(?token, ?quality, "bad token detected");
Copy link
Contributor

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?

Copy link
Contributor

@mstrug mstrug left a 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.

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.

3 participants