PocketMine.php: use main logger to emit force-kill debug

This commit is contained in:
Dylan K. Taylor 2019-08-25 17:48:13 +01:00
parent 9d1239ed67
commit 0c31b8731f

View File

@ -278,9 +278,7 @@ namespace pocketmine {
usleep(10000); //Fixes ServerKiller not being able to start on single-core machines
if(ThreadManager::getInstance()->stopAll() > 0){
if(\pocketmine\DEBUG > 1){
echo "Some threads could not be stopped, performing a force-kill" . PHP_EOL . PHP_EOL;
}
$logger->debug("Some threads could not be stopped, performing a force-kill");
Process::kill(getmypid());
}
}while(false);