-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
chore(slo): replace error log level with debug #212975
Conversation
1da5f71
to
1a4a555
Compare
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.
Thanks for fixing the info logs.
For the cases in which we catch an error and we don't throw it, how would the user know something is wrong? Maybe we can add a comment for such cases and indicate why that error is not important or how it was handled.
@@ -87,7 +87,7 @@ export class TempSummaryCleanupTask { | |||
params: {}, | |||
}); | |||
} catch (e) { | |||
this.logger.error(`Error scheduling task, error: ${e}`); | |||
this.logger.debug(`Error scheduling task, error: ${e}`); |
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.
Just curious, what is the implication of such an error? Does the user need to know about this error, or do we handle it in a meaningful way?
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 was not sure about this one actually, maybe since it's a task, it is better to keep it as an error.
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
@maryam-saeidi had to re-request a review from you since you've done it before I opened the PR ;) |
💚 Build Succeeded
Metrics [docs]
cc @kdelemme |
Summary
Resolves #212972
This PR replaces the info and error log levels with debug since most of these errors are for developers or users. Not operations.