Skip to content
Snippets Groups Projects
Commit 8287110c authored by Till Brehm's avatar Till Brehm
Browse files

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

Add filename in the error to see what is being opened

See merge request ispconfig/ispconfig3!861
parents fcfeb806 d27980e2
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
}
*/
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment