1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Show stack traces.

This commit is contained in:
Cedric Beust 2015-11-09 22:47:49 -08:00
parent a4d16eddde
commit f52e606170

View file

@ -50,7 +50,7 @@ class Logger(val dev: Boolean) {
final fun error(tag: String, message: String, e: Throwable? = null) {
println(getPattern("***** E", "***** ERROR ", tag, message) +
if (e != null && KobaltLogger.LOG_LEVEL > 1) " Exception: " + e.message else "")
if (KobaltLogger.LOG_LEVEL > 1) {
if (KobaltLogger.LOG_LEVEL > 0) {
e?.printStackTrace()
}
}