-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Switch default level to INFO #1952
Conversation
This is part of elastic#1931 and fixes elastic#1734. Some things to note/discuss: * `-v` does nothing by default now. However, it's possible that you set it to error in the config file and then use -v to go back to info level at the CLI. So I kept the option. * the `logging.level: debug` from the default configuration also doesn nothing now, unless you also specify some selectors. So I added also a `logging.selectors: ["*"]` to the default short config. * While not all of elastic#1931 is done yet, I think we can proceed with the default level change to fix elastic#1734 and then we do more INFO/WARN cleanups in future PRs.
@@ -686,7 +686,7 @@ output.elasticsearch: | |||
#logging.level: error | |||
|
|||
# Enable debug output for selected components. To enable all selectors use ["*"] | |||
# Other available selectors are beat, publish, service | |||
# Other available selectors are "beat", "publish", "service" | |||
# Multiple selectors can be chained. | |||
#logging.selectors: [ ] |
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.
Should we add here also "*"?
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.
It's not the default, but I can add it if you think it makes more sense.
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.
No, you are right. In the full we have always the defaults.
Perhaps it would be make sense to change our default here, because if you enable debug I would assume that it is somehow expected to output messages. But currently default = "no selectors" as far as I understand?
Part of elastic#1931. The default log level was changed to INFO in PR elastic#1952, but the change wasn't reflected in the default configuration files. This fixes it. The issue was signaled in elastic#2183. Also fixes the logging level in the docs.
This is part of #1931 and fixes #1734.
Some things to note/discuss:
-v
does nothing by default now. However, it's possible that youset it to error in the config file and then use -v to go back to
info level at the CLI. So I kept the option.
logging.level: debug
from the default configuration alsodoesn nothing now, unless you also specify some selectors. So I added
also a
logging.selectors: ["*"]
to the default short config.default level change to fix lack of logging running as service on Ubuntu #1734 and then we do more INFO/WARN cleanups
in future PRs.