فهرست منبع

Make sure levels are converted properly

Jordi Boggiano 9 سال پیش
والد
کامیت
d18eb57ee9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Monolog/Handler/DeduplicationHandler.php

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

@@ -67,7 +67,7 @@ class DeduplicationHandler extends BufferHandler
         parent::__construct($handler, 0, Logger::DEBUG, $bubble, false);
         parent::__construct($handler, 0, Logger::DEBUG, $bubble, false);
 
 
         $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore;
         $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore;
-        $this->deduplicationLevel = $deduplicationLevel;
+        $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel);
         $this->time = $time;
         $this->time = $time;
     }
     }