mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 20:20:08 +08:00
solve print issue
This commit is contained in:
parent
4f89f7b4e7
commit
c42250072b
@ -178,9 +178,9 @@ internal object MiraiConsoleLogger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
operator fun invoke(priority: LogPriority, identityStr: String, identity: Long, e: Exception? = null) {
|
operator fun invoke(priority: LogPriority, identityStr: String, identity: Long, e: Throwable? = null) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
MiraiConsole.frontEnd.pushLog(priority, identityStr, identity, "${e.stackTrace}")
|
MiraiConsole.frontEnd.pushLog(priority, identityStr, identity, e.stackTrace.joinToString("\n"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,12 +191,11 @@ internal object MiraiConsoleLogger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
operator fun invoke(identityStr: String, identity: Long, e: Exception? = null) {
|
operator fun invoke(identityStr: String, identity: Long, e: Throwable? = null) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
MiraiConsole.frontEnd.pushLog(LogPriority.INFO, identityStr, identity, "${e.stackTrace}")
|
MiraiConsole.frontEnd.pushLog(LogPriority.INFO, identityStr, identity, e.stackTrace.joinToString("\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ object PluginManager {
|
|||||||
pluginsFound[description.name] = description
|
pluginsFound[description.name] = description
|
||||||
pluginsLocation[description.name] = file
|
pluginsLocation[description.name] = file
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
logger.info(e.message)
|
logger.info(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user