Aleksander Machniak
2014-05-12 596d43be13156b24325e45b3f3716722c61fafa2
Add session ID (first 8 chars) to the log
1 files modified
5 ■■■■■ changed files
program/lib/Roundcube/rcube.php 5 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube.php
@@ -1132,6 +1132,11 @@
                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);