Compare commits
2 commits
6aa4113310
...
b2abbaa10c
Author | SHA1 | Date | |
---|---|---|---|
b2abbaa10c | |||
ba68ff783f |
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class Log {
|
|||
if (self :: $levels[$level] < self :: $levels[self :: $level]) return true;
|
||||
if(self :: $filepath && is_null(self :: $file_fd)) {
|
||||
self :: $file_fd = fopen(self :: $filepath, 'a');
|
||||
if (self :: $file_fd === false)
|
||||
if (self :: $file_fd)
|
||||
self :: error('Fail to open log file (%s)', self :: $filepath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue