Commit 8287110c authored by Till Brehm's avatar Till Brehm

Merge branch 'patch-log-error-filename' into 'stable-3.1'

Add filename in the error to see what is being opened

See merge request !861
parents fcfeb806 d27980e2
......@@ -195,14 +195,14 @@ class app {
/*
if (is_writable($this->_conf['log_file'])) {
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")) {
$this->error('Unable to write to logfile.');
$this->error('Unable to write to logfile: ' . $this->_conf['log_file']);
}
fclose($fp);
} 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