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

Simplify.

This commit is contained in:
Cedric Beust 2017-02-10 09:26:09 -08:00
parent 5b46033e96
commit 0c8ebe4ff6

View file

@ -81,10 +81,8 @@ class Logger(val dev: Boolean) {
val longMessage = "*****\n***** ERROR $text\n*****"
println(AsciiArt.errorColor(getPattern("E", shortMessage, longMessage, tag)))
if (KobaltLogger.LOG_LEVEL > 1) {
val t = e as Throwable
Exceptions.printStackTrace(t)
// e?.printStackTrace()
if (KobaltLogger.LOG_LEVEL > 1 && e != null) {
Exceptions.printStackTrace(e)
}
}