log IPs
This commit is contained in:
parent
8b21c9a83b
commit
91036c6281
|
@ -168,7 +168,7 @@ function logNewMessage($level, $message) {
|
|||
// check if log level is high enough
|
||||
elseif ($cfg->logLevel < $level) return;
|
||||
// ok to log, build log message
|
||||
$prefix = "LDAP Account Manager (" . session_id() . ") - " . $possibleLevels[$level] . ": ";
|
||||
$prefix = "LDAP Account Manager (" . session_id() . ' - ' . $_SERVER['REMOTE_ADDR'] . ") - " . $possibleLevels[$level] . ": ";
|
||||
$message = $prefix . $message;
|
||||
// Syslog logging
|
||||
if ($cfg->logDestination == 'SYSLOG') {
|
||||
|
|
Loading…
Reference in New Issue