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

LoggerRule improvements #263

Merged
merged 3 commits into from
Nov 13, 2020
Merged

Conversation

Vlatombe
Copy link
Member

  • Don't duplicate records with level INFO or above
  • quiet() allows to record log messages but not print them to console. Useful if there are multiple LoggerRule instances.

* Don't duplicate records with level INFO or above
* quiet() allows to record log messages but not print them to console. Useful if there are multiple LoggerRule instances.
@@ -284,4 +297,22 @@ public void describeTo(org.hamcrest.Description description) {
}
}

/**
* Delegates to the given Handler but filter out records higher or equal to its initial level
Copy link
Member

Choose a reason for hiding this comment

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

Did you see #145 and specifically verify this behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't see it before, but afaics all the FINE logs were ok when I verified it.

Copy link
Member

Choose a reason for hiding this comment

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

Great, just verifying that you tested more carefully than I did in #138. 😞

src/main/java/org/jvnet/hudson/test/LoggerRule.java Outdated Show resolved Hide resolved
Vlatombe and others added 2 commits November 13, 2020 17:04
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
@jglick jglick merged commit a312031 into jenkinsci:master Nov 13, 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.

2 participants