mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Update MainLogger.php
This commit is contained in:
parent
1c20fcc8c7
commit
41fe4a527a
@ -44,7 +44,7 @@ class MainLogger extends \ThreadedLogger{
|
||||
throw new \RuntimeException("MainLogger has been already created");
|
||||
}
|
||||
static::$logger = $this;
|
||||
@mkdir(basename($logFile), 0777, true);
|
||||
touch(basename($logFile));
|
||||
$this->logFile = $logFile;
|
||||
$this->hasANSI = (bool) $hasANSI;
|
||||
$this->logDebug = (bool) $logDebug;
|
||||
@ -172,4 +172,4 @@ class MainLogger extends \ThreadedLogger{
|
||||
|
||||
fclose($this->logResource);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user