summaryrefslogtreecommitdiffstats
path: root/lib/stream.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stream.lib.php')
-rw-r--r--lib/stream.lib.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php
index 852df28a..bc30d7cb 100644
--- a/lib/stream.lib.php
+++ b/lib/stream.lib.php
@@ -254,10 +254,8 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) {
$downsample_command = str_replace("%SAMPLE%",$sample_rate,$downsample_command);
// If we are debugging log this event
- if (conf('debug')) {
- $message = "Start Downsample: $downsample_command";
- log_event($GLOBALS['user']->username,' downsample ',$message);
- } // if debug
+ $message = "Start Downsample: $downsample_command";
+ debug_event('downsample',$message,'3');
$fp = @popen($downsample_command, 'rb');