summaryrefslogtreecommitdiffstats
path: root/lib/log.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.lib.php')
-rw-r--r--lib/log.lib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/log.lib.php b/lib/log.lib.php
index 19aad964..6f9df914 100644
--- a/lib/log.lib.php
+++ b/lib/log.lib.php
@@ -134,7 +134,10 @@ function debug_event($type, $message, $level, $file = '', $username = '') {
$username = $GLOBALS['user']->username;
}
- log_event($username, $type, $message, $file);
+ // If the message is multiple lines, make multiple log lines
+ foreach (explode("\n", $message) as $line) {
+ log_event($username, $type, $line, $file);
+ }
} // debug_event