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:
Benjamin Sonntag 2017-06-07 15:14:03 +02:00 committed by GitHub
commit 43bb39105b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**