Skip to content
Snippets Groups Projects
Commit bb4bf280 authored by Rajko Albrecht's avatar Rajko Albrecht
Browse files

Re-disable log to logfile as before.

parent e42fd832
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ class app { ...@@ -188,7 +188,7 @@ class app {
$tstamp = time(); $tstamp = time();
$msg = '[INTERFACE]: '.$msg; $msg = '[INTERFACE]: '.$msg;
$this->db->query("INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES (?, 0, ?, ?, ?)", $server_id, $priority,$tstamp,$msg); $this->db->query("INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES (?, 0, ?, ?, ?)", $server_id, $priority,$tstamp,$msg);
/*
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->_conf['log_file']); $this->error('Unable to open logfile: ' . $this->_conf['log_file']);
...@@ -200,7 +200,7 @@ class app { ...@@ -200,7 +200,7 @@ class app {
} else { } else {
$this->error('Unable to write to logfile: ' . $this->_conf['log_file']); $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