|
@@ -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)
|