stanley-king 2 лет назад
Родитель
Сommit
85db266fca
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      core/framework/libraries/log.php

+ 5 - 5
core/framework/libraries/log.php

@@ -146,11 +146,14 @@ class Log
             if($this->mOpenAll) $this->write_all($content);
         }
 
-        if ($lev == self::ERR) {
+        if ($lev == self::ERR)
+        {
             $msg = $this->msg();
             $content = $this->format_msg($msg,$slevel);
             $this->write($content);
-            if($this->mOpenAll) $this->write_all($content);
+            if($this->mOpenAll) {
+                $this->write_all($content);
+            }
         }
     }
 
@@ -202,9 +205,6 @@ class Log
             fwrite($this->mAppFile, $content);
             fflush($this->mAppFile);
         }
-        else {
-            exit();
-        }
     }
 
     private function write_all($content)