diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 12:59:02 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 22:00:08 -0500 |
commit | 3010ae8c85fe8cb656c9e96a95d0efee0fb2126a (patch) | |
tree | aaef61855b1b4244da57f6a23b0a56ed92ff056f /lib/log.lib.php | |
parent | 75b2af2464c168525d207e2c4b2d20ea4e1719d0 (diff) | |
download | ampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.tar.gz ampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.tar.bz2 ampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.zip |
Log stderr when we transcode
Now you shouldn't need to manually run the command to see what went
wrong.
Diffstat (limited to 'lib/log.lib.php')
-rw-r--r-- | lib/log.lib.php | 5 |
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 |