From 3e993250d8c591ebef6f7a72e776c474fd24fd5b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 25 Aug 2019 17:48:13 +0100 Subject: [PATCH] backport 0c31b8731fe68bd56dbbfcc5eed77dedef914664: PocketMine.php: use main logger to emit force-kill debug --- src/pocketmine/PocketMine.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 94dba731d..bdd6fbb17 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -280,9 +280,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"); Utils::kill(getmypid()); } }while(false);