mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Cleaned up bool comparison mess
This commit is contained in:
@ -108,7 +108,7 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
}
|
||||
|
||||
public function debug($message, bool $force = false){
|
||||
if($this->logDebug === false and !$force){
|
||||
if(!$this->logDebug and !$force){
|
||||
return;
|
||||
}
|
||||
$this->send($message, \LogLevel::DEBUG, "DEBUG", TextFormat::GRAY);
|
||||
@ -263,7 +263,7 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
throw new \RuntimeException("Couldn't open log file");
|
||||
}
|
||||
|
||||
while($this->shutdown === false){
|
||||
while(!$this->shutdown){
|
||||
$this->writeLogStream($logResource);
|
||||
$this->synchronized(function(){
|
||||
$this->wait(25000);
|
||||
|
Reference in New Issue
Block a user