MainLogger: Remove redundant condition

these are always ThreadedLoggerAttachments anyway, this code doesn't make sense.
This commit is contained in:
Dylan K. Taylor 2018-01-29 12:24:00 +00:00
parent f9b1afe4cf
commit d2d1df0447

View File

@ -224,9 +224,7 @@ class MainLogger extends \AttachableThreadedLogger{
}
foreach($this->attachments as $attachment){
if($attachment instanceof \ThreadedLoggerAttachment){
$attachment->call($level, $message);
}
$attachment->call($level, $message);
}
$this->logStream[] = date("Y-m-d", $now) . " " . $cleanMessage . PHP_EOL;