mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed MainLogger not being assigned as global on async workers
This commit is contained in:
@ -51,6 +51,7 @@ class AsyncWorker extends Worker{
|
||||
//set this after the autoloader is registered
|
||||
set_error_handler([Utils::class, 'errorExceptionHandler']);
|
||||
|
||||
\GlobalLogger::set($this->logger);
|
||||
if($this->logger instanceof MainLogger){
|
||||
$this->logger->registerStatic();
|
||||
}
|
||||
|
Reference in New Issue
Block a user