mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
partial fix for #2986
This commit is contained in:
@@ -300,7 +300,7 @@ class MainLogger extends \AttachableThreadedLogger{
|
|||||||
$threadName = (new \ReflectionClass($thread))->getShortName() . " thread";
|
$threadName = (new \ReflectionClass($thread))->getShortName() . " thread";
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = sprintf($this->format, $time->format("H:i:s"), $color, $threadName, $prefix, $message);
|
$message = sprintf($this->format, $time->format("H:i:s"), $color, $threadName, $prefix, TextFormat::clean($message, false));
|
||||||
|
|
||||||
if(!Terminal::isInit()){
|
if(!Terminal::isInit()){
|
||||||
Terminal::init($this->mainThreadHasFormattingCodes); //lazy-init colour codes because we don't know if they've been registered on this thread
|
Terminal::init($this->mainThreadHasFormattingCodes); //lazy-init colour codes because we don't know if they've been registered on this thread
|
||||||
|
Reference in New Issue
Block a user