Skip to content

Commit

Permalink
Fixed server.log created in two different places on path changed
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Dec 22, 2014
1 parent b6c0eb8 commit 2f60073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/utils/MainLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct($logFile, $hasANSI = false, $logDebug = false){
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;
Expand Down

0 comments on commit 2f60073

Please sign in to comment.