Pārlūkot izejas kodu

only print stack traces when debug logging

tags/2.0.1
Jonathan Cobb pirms 5 gadiem
vecāks
revīzija
edf1c904e3
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java

+ 7
- 1
src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java Parādīt failu

@@ -155,7 +155,13 @@ public class ZillaRuntime {
if (cause instanceof Exception) errorApi.report(message, (Exception) cause);
else errorApi.report(e);
}
if (cause != null) log.error("Inner exception: " + message, cause);
if (cause != null) {
if (log.isDebugEnabled()) {
log.debug("Inner exception: " + message, cause);
} else {
log.error("Inner exception: " + message + ": "+ shortError(cause));
}
}
throw e;
}



Notiek ielāde…
Atcelt
Saglabāt