mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
[FIXED JENKINS-18959] /log/all should not show FINE messages from custom loggers.
This commit is contained in:
1 parent
2210ec1bb4
commit
010d9e9067
2 files changed
+11
-1
No files matched your search
@@ -59,6 +59,7 @@ import java.util.Locale;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.security.Security;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
/**
|
||||
* Entry point when Hudson is used as a webapp.
|
||||
@@ -66,7 +67,13 @@ import java.security.Security;
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public final class WebAppMain implements ServletContextListener {
|
||||
private final RingBufferLogHandler handler = new RingBufferLogHandler();
|
||||
private final RingBufferLogHandler handler = new RingBufferLogHandler() {
|
||||
@Override public synchronized void publish(LogRecord record) {
|
||||
if (record.getLevel().intValue() >= Level.INFO.intValue()) {
|
||||
super.publish(record);
|
||||
}
|
||||
}
|
||||
};
|
||||
private static final String APP = "app";
|
||||
private boolean terminated;
|
||||
private Thread initThread;
|
||||
|
||||
Reference in new issue
Block a user