Compare commits
2 commits
b2abbaa10c
...
6aa4113310
Author | SHA1 | Date | |
---|---|---|---|
6aa4113310 | |||
bb62e5b53b |
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 :: $levels[$level] < self :: $levels[self :: $level]) return true;
|
||||||
if(self :: $filepath && is_null(self :: $file_fd)) {
|
if(self :: $filepath && is_null(self :: $file_fd)) {
|
||||||
self :: $file_fd = fopen(self :: $filepath, 'a');
|
self :: $file_fd = fopen(self :: $filepath, 'a');
|
||||||
if (self :: $file_fd)
|
if (self :: $file_fd === false)
|
||||||
self :: error('Fail to open log file (%s)', self :: $filepath);
|
self :: error('Fail to open log file (%s)', self :: $filepath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue