mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
MainLogger: Remove redundant condition
these are always ThreadedLoggerAttachments anyway, this code doesn't make sense.
This commit is contained in:
parent
f9b1afe4cf
commit
d2d1df0447
@ -224,9 +224,7 @@ class MainLogger extends \AttachableThreadedLogger{
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->attachments as $attachment){
|
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;
|
$this->logStream[] = date("Y-m-d", $now) . " " . $cleanMessage . PHP_EOL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user