Commit d27980e2 authored by Helmo's avatar Helmo

Add filename in the error to see what is being opened

parent 57b164e0
...@@ -195,14 +195,14 @@ class app { ...@@ -195,14 +195,14 @@ class app {
/* /*
if (is_writable($this->_conf['log_file'])) { if (is_writable($this->_conf['log_file'])) {
if (!$fp = fopen ($this->_conf['log_file'], 'a')) { if (!$fp = fopen ($this->_conf['log_file'], 'a')) {
$this->error('Unable to open logfile.'); $this->error('Unable to open logfile: ' . $this->_conf['log_file']);
} }
if (!fwrite($fp, date('d.m.Y-H:i').' - '. $msg."\r\n")) { if (!fwrite($fp, date('d.m.Y-H:i').' - '. $msg."\r\n")) {
$this->error('Unable to write to logfile.'); $this->error('Unable to write to logfile: ' . $this->_conf['log_file']);
} }
fclose($fp); fclose($fp);
} else { } else {
$this->error('Unable to write to logfile.'); $this->error('Unable to write to logfile: ' . $this->_conf['log_file']);
} }
*/ */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment