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

Switch default level to INFO #1952

Merged
merged 1 commit into from
Jul 4, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Jul 4, 2016

This is part of #1931 and fixes #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 Reduce Warn verbosity, switch to Info by default #1931 is done yet, I think we can proceed with the
    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.

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.
@tsg tsg added discuss Issue needs further discussion. review labels Jul 4, 2016
@@ -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: [ ]
Copy link
Contributor

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 "*"?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

@ruflin ruflin merged commit 9cd3696 into elastic:master Jul 4, 2016
tsg pushed a commit to tsg/beats that referenced this pull request Aug 9, 2016
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.
ruflin pushed a commit that referenced this pull request Aug 9, 2016
Part of #1931. The default log level was changed to INFO in PR #1952,
but the change wasn't reflected in the default configuration files. This
fixes it. The issue was signaled in #2183.

Also fixes the logging level in the docs.
@tsg tsg deleted the switch_default_level_to_info branch August 25, 2016 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issue needs further discussion. review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lack of logging running as service on Ubuntu
2 participants