From d27980e2b42e595c829d744e502f805b08d1ec7e Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Thu, 13 Dec 2018 21:22:42 +0100 Subject: [PATCH] Add filename in the error to see what is being opened --- interface/lib/app.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index ab7d90334..7af764f92 100755 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -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']); } */ } -- GitLab