mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Simplify.
This commit is contained in:
parent
5b46033e96
commit
0c8ebe4ff6
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue