From f0093a0cca676ac442f6364a7ae743cb44f80e97 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Mon, 5 Apr 2021 23:58:37 +0800 Subject: [PATCH] Fix ignored exceptions in PlatformLogger on Android --- .../androidMain/kotlin/utils/PlatformLogger.android.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mirai-core-api/src/androidMain/kotlin/utils/PlatformLogger.android.kt b/mirai-core-api/src/androidMain/kotlin/utils/PlatformLogger.android.kt index c9cf29fe9..9b5d9ccef 100644 --- a/mirai-core-api/src/androidMain/kotlin/utils/PlatformLogger.android.kt +++ b/mirai-core-api/src/androidMain/kotlin/utils/PlatformLogger.android.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019-2020 Mamoe Technologies and contributors. + * Copyright 2019-2021 Mamoe Technologies and contributors. * * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link. @@ -39,7 +39,7 @@ public actual open class PlatformLogger actual constructor( } public override fun info0(message: String?, e: Throwable?) { - Log.i(identity, message) + Log.i(identity, message, e) } @@ -48,7 +48,7 @@ public actual open class PlatformLogger actual constructor( } public override fun warning0(message: String?, e: Throwable?) { - Log.w(identity, message) + Log.w(identity, message, e) } @@ -57,7 +57,7 @@ public actual open class PlatformLogger actual constructor( } public override fun error0(message: String?, e: Throwable?) { - Log.e(identity, message) + Log.e(identity, message, e) } @@ -66,7 +66,7 @@ public actual open class PlatformLogger actual constructor( } public override fun debug0(message: String?, e: Throwable?) { - Log.d(identity, message) + Log.d(identity, message, e) } } \ No newline at end of file