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

Avoid printing logs to console when both the log levels of observability are set to none #316

Conversation

NeJan2020
Copy link
Collaborator

This PR makes the performance of the observability more reasonable when both observability.logger.file_level and observability.logger.console_level is set to none.

Kindling will only export the log to the console at Panic Level after this PR.
However, some logs will still output to the console when the agent starts since they are not controlled by observability, such as Probe's log.

Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@NeJan2020 NeJan2020 requested a review from dxsup September 16, 2022 09:43
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@NeJan2020 NeJan2020 changed the title Correct the configuration at the log level Avoid printing logs to console when both observability.logger.file_level and observability.logger.console_level are set to none Sep 19, 2022
@NeJan2020 NeJan2020 changed the title Avoid printing logs to console when both observability.logger.file_level and observability.logger.console_level are set to none Avoid printing logs to console when all the log levels of observability of are set to none Sep 19, 2022
@NeJan2020 NeJan2020 changed the title Avoid printing logs to console when all the log levels of observability of are set to none Avoid printing logs to console when the both log levels of observability are set to none Sep 19, 2022
@NeJan2020 NeJan2020 changed the title Avoid printing logs to console when the both log levels of observability are set to none Avoid printing logs to console when both the log levels of observability are set to none Sep 19, 2022
@dxsup dxsup merged commit b46b579 into KindlingProject:main Sep 19, 2022
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.

2 participants