mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 08:19:45 +00:00
Fixed MainLogger not being assigned as global on async workers
This commit is contained in:
parent
f64cef7eb6
commit
e9d43aa44f
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user