Fixed server.log created in two different places on path changed

This commit is contained in:
Shoghi Cervantes 2014-12-22 23:00:28 +01:00
parent b6c0eb8c96
commit 2f6007342c
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -45,7 +45,7 @@ class MainLogger extends \AttachableThreadedLogger{
throw new \RuntimeException("MainLogger has been already created");
}
static::$logger = $this;
touch(basename($logFile));
touch($logFile);
$this->logFile = $logFile;
$this->hasANSI = (bool) $hasANSI;
$this->logDebug = (bool) $logDebug;