From 1b45d4095fab9c47e4b988a924fa97a03d87cef0 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 5 Dec 2020 16:40:04 +0800 Subject: [PATCH] =?UTF-8?q?0.6.1=20=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=AE=B0=E5=BD=95Exception=E6=97=A5=E5=BF=97=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- .../main/kotlin/com/synebula/gaea/app/component/Logger.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 68b9427..8e5492c 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ allprojects { subprojects { ext { - version '0.6.0' + version '0.6.1' spring_version = "2.3.0.RELEASE" } diff --git a/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/Logger.kt b/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/Logger.kt index fbbe6e1..24b042d 100644 --- a/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/Logger.kt +++ b/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/Logger.kt @@ -88,7 +88,7 @@ class Logger : ILogger { override fun debug(t: Throwable) { if (this.logger.isDebugEnabled) { - this.logger.debug(t.toString()) + this.logger.debug(t.message, t) } } @@ -134,7 +134,7 @@ class Logger : ILogger { override fun info(t: Throwable) { if (this.logger.isInfoEnabled) { - this.logger.info(t.toString()) + this.logger.info(t.message, t) } } @@ -179,7 +179,7 @@ class Logger : ILogger { override fun warn(t: Throwable) { if (this.logger.isWarnEnabled) { - this.logger.warn(t.toString()) + this.logger.warn(t.message, t) } } @@ -225,7 +225,7 @@ class Logger : ILogger { override fun error(t: Throwable) { if (this.logger.isErrorEnabled) { - this.logger.error(t.toString()) + this.logger.error(t.message, t) } }