Procházet zdrojové kódy

Make sure levels are converted properly

Jordi Boggiano před 9 roky
rodič
revize
d18eb57ee9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
 
         $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;
     }