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

[Issue #206] - Prevent printing of logs in the status command #214

Merged
merged 1 commit into from
May 3, 2017

Conversation

oleg-nenashev
Copy link
Member

@oleg-nenashev oleg-nenashev commented Apr 25, 2017

Addresses #206, regression in 2.0 since it breaks the documented behavior. This is rather a workaround to prevent printing of log messages in CLI with the default logging level.

  • Reduce CLI logging verbosity to Info
  • Move the messages polluting the output to Debug. Anyway, these logging levels seem to be reasonable.
  • Add Info logging for start/stop/install/restart commands to have a welcome message in CLI

I do not consider it as final fix. Ideally WinSW startup logic should determine commands like status and disable console log appender for them at all. It requires extra changes in the code.

@reviewbybees @Digital-Chaos

Edited by @NextTurn: Fixes #206

This is rather a workaround to prevent printing of log messages in CLI with the default logging level. I reduced CLI logging verbosity to "Info" and moved the messages polluting the output to Debug. Anyway, these logging levels seem to be reasonable. I also added Info logging for start/stop/install/restart commands just to have a welcome message in CLI.
@ghost
Copy link

ghost commented Apr 25, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@oleg-nenashev
Copy link
Member Author

@reviewbybees done

@oleg-nenashev oleg-nenashev merged commit 7be52c7 into winsw:master May 3, 2017
@nxtn nxtn modified the milestones: 2.2.0, 2.1.1 Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status command text contains log output
3 participants