diff --git a/src/pocketmine/utils/mainLogger.php b/src/pocketmine/utils/mainLogger.php index d61077758..caebcc22d 100644 --- a/src/pocketmine/utils/mainLogger.php +++ b/src/pocketmine/utils/mainLogger.php @@ -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;