mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
MainLogger: Require useFormattingCodes as a constructor parameter
this avoids needing to call Terminal::init() before starting a MainLogger. Since it inits the formatting codes anyway when log messages are first recorded, it shouldn't be necessary to pre-initialize it.
This commit is contained in:
@ -237,7 +237,7 @@ namespace pocketmine {
|
||||
Terminal::init();
|
||||
}
|
||||
|
||||
$logger = new MainLogger($dataPath . "server.log");
|
||||
$logger = new MainLogger($dataPath . "server.log", Terminal::hasFormattingCodes());
|
||||
\GlobalLogger::set($logger);
|
||||
|
||||
emit_performance_warnings($logger);
|
||||
|
Reference in New Issue
Block a user