mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
Fix Ansi Pollution (#596)
This commit is contained in:
parent
152709a0f1
commit
8d0fd96a22
@ -59,7 +59,7 @@ public actual open class PlatformLogger @JvmOverloads constructor(
|
||||
*/
|
||||
@SinceMirai("1.1.0")
|
||||
protected open fun printLog(message: String?, priority: SimpleLogger.LogPriority) {
|
||||
if (isColored) output("${priority.color}$currentTimeFormatted ${priority.simpleName}/$identity: $message")
|
||||
if (isColored) output("${priority.color}$currentTimeFormatted ${priority.simpleName}/$identity: $message${Color.RESET}")
|
||||
else output("$currentTimeFormatted ${priority.simpleName}/$identity: $message")
|
||||
}
|
||||
|
||||
@ -143,4 +143,4 @@ internal val Throwable.stackTraceString
|
||||
get() = ByteArrayOutputStream().run {
|
||||
printStackTrace(PrintStream(this))
|
||||
String(this.toByteArray())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user