Merge pull request #153 from fser/fser/uniform-log-entries
log entries for error and log both log IP address
This commit is contained in:
commit
43bb39105b
|
@ -119,7 +119,7 @@ class m_err {
|
|||
*/
|
||||
function logerr() {
|
||||
global $mem;
|
||||
@file_put_contents($this->logfile, date("d/m/Y H:i:s") . " - ERROR - " . $mem->user["login"] . " - " . $this->errstr(), FILE_APPEND);
|
||||
@file_put_contents($this->logfile, date("d/m/Y H:i:s") . " - " . get_remote_ip() . " - ERROR - " . $mem->user["login"] . " - " . $this->errstr(), FILE_APPEND);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue