瀏覽代碼

Merge pull request #362 from stof/patch-2

Fixed the default file permission for RotatingFile
Jordi Boggiano 11 年之前
父節點
當前提交
e6b11fbef7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Monolog/Handler/RotatingFileHandler.php

+ 1 - 1
src/Monolog/Handler/RotatingFileHandler.php

@@ -38,7 +38,7 @@ class RotatingFileHandler extends StreamHandler
      * @param Boolean $bubble          Whether the messages that are handled can bubble up the stack or not
      * @param int     $filePermissions Optional file permissions (default (0644) are only for owner read/write)
      */
-    public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644)
+    public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null)
     {
         $this->filename = $filename;
         $this->maxFiles = (int) $maxFiles;