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

Reduce log verbosity and add message to logs that didn't have one #3478

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

emrahs
Copy link
Contributor

@emrahs emrahs commented Aug 25, 2020

What changed?
Changed Info logs with high volume and low value to Debug level and added a message to logs that didn't have a message.

Why?
Better use of logging pipeline and reducing the noise, and making lifecycle event logs more searchable.

How did you test it?
Existing unit and integration tests should be sufficient

Potential risks
None

Comment on lines +151 to +152
t.logger.Info("Timer queue processor state changed", tag.LifeCycleStarting)
defer t.logger.Info("Timer queue processor state changed", tag.LifeCycleStarted)
Copy link
Contributor

@yycptt yycptt Aug 25, 2020

Choose a reason for hiding this comment

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

I think in most cases we use empty log message because the logger is already tagged with component tag which we can use for searching.

Is the idea here to provide an easier way to find all types of life cycle change events for a certain component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly. I realized that the intent was to rely on the tag, but there are several types of logs with the same lifecycle event tag values although they are unrelated and it is cumbersome to narrow down the logs to a specific component.

The message field is one of the most frequently used fields to filter logs during an investigation, and I don't think it's a good experience to have a good chunk of logs that have the same message (null) even though they are unrelated.

@yycptt yycptt requested a review from a team August 26, 2020 00:17
Copy link
Contributor

@mkolodezny mkolodezny left a comment

Choose a reason for hiding this comment

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

Overall looks good. Thanks for improving this!

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.

4 participants