Cleaned up bool comparison mess

This commit is contained in:
Dylan K. Taylor
2018-03-19 14:10:55 +00:00
parent 24c5d7557e
commit ac5a91b67e
39 changed files with 141 additions and 141 deletions

View File

@ -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);