mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Show stack traces.
This commit is contained in:
parent
a4d16eddde
commit
f52e606170
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue