diff --git a/core/src/main/java/hudson/model/RunMap.java b/core/src/main/java/hudson/model/RunMap.java index 8eaf30aacf..9207cfc442 100644 --- a/core/src/main/java/hudson/model/RunMap.java +++ b/core/src/main/java/hudson/model/RunMap.java @@ -194,7 +194,7 @@ public final class RunMap> extends AbstractLazyLoadRunMap // 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> extends AbstractLazyLoadRunMap 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> extends AbstractLazyLoadRunMap private static final Logger LOGGER = Logger.getLogger(RunMap.class.getName()); - public static boolean LOG_RETRIEVAL = false; - private static class ThisIsHowItsLoaded extends Exception {} }