Fix ignored exceptions in PlatformLogger on Android

This commit is contained in:
Him188 2021-04-05 23:58:37 +08:00
parent 45294e1538
commit f0093a0cca

View File

@ -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)
}
}