提交 97b0ebab 编写于 作者: J Jesse Glick

No need for a special logging level flag; if you are interested in this...

No need for a special logging level flag; if you are interested in this logger, just set its level to FINE.
上级 f0ab58d0
......@@ -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 {}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册