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

Set logging level to 'info' for message about init system detection #37252

Merged
merged 1 commit into from
Oct 27, 2016
Merged

Set logging level to 'info' for message about init system detection #37252

merged 1 commit into from
Oct 27, 2016

Conversation

vutny
Copy link
Contributor

@vutny vutny commented Oct 26, 2016

What does this PR do?

This PR stops Salt complaining about it was unable to detect the init system on Linux each time when Grain data is going to be refreshed.

In case if you're using Salt to build or provision containers (where PID 1 could be virtually anything, even Salt itself!) or you've moved to other not so popular init replacements such as monit or runit, then this message becomes very annoying:

[ERROR   ] Could not determine init location from command line: (/my_init)

Since Salt, called interactively, outputs errors to stderr by default, and it is generally a bad practice to disable error logging at all, I think it would be better to put the message above to the 'info' loglevel.

Tests written?

No

@cachedout cachedout merged commit d0ce3de into saltstack:2016.3 Oct 27, 2016
@cachedout
Copy link
Contributor

👍

@vutny vutny deleted the suppress-init-grain-error branch October 27, 2016 08:08
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.

None yet

2 participants