diff options
Diffstat (limited to 'lib/stream.lib.php')
-rw-r--r-- | lib/stream.lib.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php index 37674d7b..9b99d752 100644 --- a/lib/stream.lib.php +++ b/lib/stream.lib.php @@ -180,9 +180,7 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) { if ($min_bitrate > 1 AND ($max_bitrate/$active_streams) < $min_bitrate) { /* Log the failure */ - if (conf('debug')) { - log_event($user->username,' downsample ',"Error: Max bandwidith already allocated. $active_streams Active Streams"); - } + debug_event('downsample',"Error: Max bandwidith already allocated. $active_streams Active Streams",'2'); /* Toast the now playing entry, then tell em to try again later */ delete_now_playing($now_playing_id); @@ -197,9 +195,7 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) { // Never go over the users sample rate if ($sample_rate > $user_sample_rate) { $sample_rate = $user_sample_rate; } - if (conf('debug')) { - log_event($GLOBALS['user']->username, ' downsample ',"Downsampled: $active_streams current active streams, downsampling to $sample_rate"); - } + debug_event('downsample',"Downsampled: $active_streams current active streams, downsampling to $sample_rate",'2'); } // end if we've got bitrates |