mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
No need for a special logging level flag; if you are interested in this logger, just set its level to FINE.
This commit is contained in:
1 parent
f0ab58d046
commit
97b0ebab7b
1 file changed
+3
-5
@@ -194,7 +194,7 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
|
||||
// or August 0th. Date object doesn't roundtrip those, so we eventually fail to load this data.
|
||||
// Don't even bother trying.
|
||||
if (!isCorrectDate(name)) {
|
||||
LOGGER.fine("Skipping "+new File(dir,name));
|
||||
LOGGER.log(FINE, "Skipping {0}", new File(dir,name));
|
||||
return false;
|
||||
}
|
||||
return !name.startsWith("0000") && new File(dir,name).isDirectory();
|
||||
@@ -219,8 +219,8 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
|
||||
try {
|
||||
R b = cons.create(d);
|
||||
b.onLoad();
|
||||
if (LOGGER.isLoggable(FINE) || LOG_RETRIEVAL)
|
||||
LOGGER.log(LOG_RETRIEVAL?INFO:FINE,"Loaded " + b.getFullDisplayName(),new ThisIsHowItsLoaded());
|
||||
if (LOGGER.isLoggable(FINE))
|
||||
LOGGER.log(FINE,"Loaded " + b.getFullDisplayName(),new ThisIsHowItsLoaded());
|
||||
return b;
|
||||
} catch (IOException e) {
|
||||
LOGGER.log(Level.WARNING, "could not load " + d, e);
|
||||
@@ -251,7 +251,5 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(RunMap.class.getName());
|
||||
|
||||
public static boolean LOG_RETRIEVAL = false;
|
||||
|
||||
private static class ThisIsHowItsLoaded extends Exception {}
|
||||
}
|
||||
Reference in new issue
Block a user