Set ErrorException handler on AsyncWorkers

This commit is contained in:
Dylan K. Taylor
2017-09-28 18:01:31 +01:00
parent f565791e41
commit 7ba193dc2e
2 changed files with 7 additions and 2 deletions

View File

@@ -41,6 +41,9 @@ class AsyncWorker extends Worker{
}
public function run(){
error_reporting(-1);
set_error_handler('\pocketmine\error_handler');
$this->registerClassLoader();
$this->logger->registerStatic();
gc_enable();