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

LogWatcher - don't change log level if not needed #989

Merged
merged 2 commits into from Sep 18, 2018

Conversation

ahgittin
Copy link
Contributor

prevents the logs from missing useful output if testing for a higher-level message,
useful when investigating tests, esp SoftwareProcessStopsDuringStartTest.testStopDuringProvisionWaitsForCompletion where the log messages we want aren't showing because we reset it to warn.

also use try-close syntax for LogWatcher.

prevents the logs from missing useful output if testing for a higher-level message,
useful when investigating tests.

also use try-close syntax for LogWatcher.
Copy link
Contributor

@aledsage aledsage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @ahgittin - only one minor comment. Good for you to merge once sysout is removed.

@@ -268,17 +248,14 @@ public void assertHasEvent() {
@Override
public void run() {
assertFalse(events.isEmpty());
System.out.println("EVENTS: "+events);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't include System.out

@ahgittin
Copy link
Contributor Author

thx @aledsage , done and merged

@asfgit asfgit merged commit 39782e6 into apache:master Sep 18, 2018
asfgit pushed a commit that referenced this pull request Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants