Skip to content

Commit 8287110

Browse files
author
Till Brehm
committed
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
2 parents fcfeb80 + d27980e commit 8287110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/app.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ public function log($msg, $priority = 0) {
195195
/*
196196
if (is_writable($this->_conf['log_file'])) {
197197
if (!$fp = fopen ($this->_conf['log_file'], 'a')) {
198-
$this->error('Unable to open logfile.');
198+
$this->error('Unable to open logfile: ' . $this->_conf['log_file']);
199199
}
200200
if (!fwrite($fp, date('d.m.Y-H:i').' - '. $msg."\r\n")) {
201-
$this->error('Unable to write to logfile.');
201+
$this->error('Unable to write to logfile: ' . $this->_conf['log_file']);
202202
}
203203
fclose($fp);
204204
} else {
205-
$this->error('Unable to write to logfile.');
205+
$this->error('Unable to write to logfile: ' . $this->_conf['log_file']);
206206
}
207207
*/
208208
}

0 commit comments

Comments
 (0)