Add session ID (first 8 chars) to the log

pull/190/head
Aleksander Machniak 10 years ago
parent 06798312da
commit 596d43be13

@ -1132,6 +1132,11 @@ class rcube
return true;
}
// add session ID to the log
if ($sess = session_id()) {
$line = '<' . substr($sess, 0, 8) . '> ' . $line;
}
if ($log_driver == 'syslog') {
$prio = $name == 'errors' ? LOG_ERR : LOG_INFO;
syslog($prio, $line);

Loading…
Cancel
Save