Updated Excel class logging

This commit is contained in:
Collin Smith 2020-12-07 11:31:52 -08:00
parent ea2ff28d61
commit e95411388c

View File

@ -90,15 +90,14 @@ public abstract class Excel<T extends Excel.Entry, U extends Serializer<T>> impl
final FileHandle handle;
final boolean loadBin;
if (!FORCE_TXT && bin != null && bin.exists()) {
log.debug("Loading bin {}", bin);
handle = bin;
loadBin = true;
} else {
log.debug("Loading txt {}", txt);
handle = txt;
loadBin = false;
}
log.debug("Parsing {}", handle);
try {
MDC.put("excelClass", excel.getClass().getCanonicalName());
try {
@ -116,7 +115,7 @@ public abstract class Excel<T extends Excel.Entry, U extends Serializer<T>> impl
}
long end = System.currentTimeMillis();
if (DEBUG_TIME) log.debug("Loaded {} in {} ms", handle, end - start);
if (DEBUG_TIME) log.debug("{} parsed in {} ms", handle, end - start);
return excel;
}