diff options
-rw-r--r-- | lib/class/art.class.php | 4 | ||||
-rw-r--r-- | lib/class/song.class.php | 2 | ||||
-rw-r--r-- | lib/class/update.class.php | 1 | ||||
-rw-r--r-- | lib/class/vainfo.class.php | 2 | ||||
-rw-r--r-- | stream.php | 3 |
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/class/art.class.php b/lib/class/art.class.php index ad8023ca..d4cdea94 100644 --- a/lib/class/art.class.php +++ b/lib/class/art.class.php @@ -611,7 +611,7 @@ class Art extends database_object { $config = array($config); } - debug_event('Art','Searching using:' . print_r($config, true), 3); + debug_event('Art','Searching using:' . json_encode($config), 3); foreach ($config as $method) { @@ -1062,7 +1062,7 @@ class Art extends database_object { $results = $preferred; } - debug_event('folder_art', 'Results: ' . print_r($results, true), 5); + debug_event('folder_art', 'Results: ' . json_encode($results), 5); if ($limit && count($results) > $limit) { $results = array_slice($results, 0, $limit); } diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 3d80e7c7..70f6e881 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -380,7 +380,7 @@ class Song extends database_object implements media { } // end foreach if ($array['change']) { - debug_event('song-diff',print_r($array['element'],1),'5','ampache-catalog'); + debug_event('song-diff', json_encode($array['element']), 5, 'ampache-catalog'); } return $array; diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 3401436b..31446e76 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -1630,7 +1630,6 @@ class Update { } // Adding default information foreach ($acl_information as $row) { - debug_event('Crap',print_r($row,1),1); $row['start'] = Dba::escape(inet_pton($row['start'])); $row['end'] = Dba::escape(inet_pton($row['end'])); $row['key'] = Dba::escape($row['key']); diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php index f52545b8..0d9dbc2a 100644 --- a/lib/class/vainfo.class.php +++ b/lib/class/vainfo.class.php @@ -173,7 +173,7 @@ class vainfo { $encodings[mb_detect_encoding($tag, $mb_order, true)]++; } - debug_event('vainfo', 'encoding detection: ' . print_r($encodings, true), 5); + debug_event('vainfo', 'encoding detection: ' . json_encode($encodings), 5); $high = 0; foreach ($encodings as $key => $value) { if ($value > $high) { @@ -169,7 +169,8 @@ switch ($_REQUEST['method']) { } /* Start the Stream */ - debug_event('stream.php' , 'Stream Type: '.$stream_type.' Media IDs: '. print_r($media_ids, true), '5'); + debug_event('stream.php' , 'Stream Type: ' . $stream_type . + ' Media IDs: '. json_encode($media_ids), 5); $stream = new Stream($stream_type,$media_ids); if (isset($urls)) { $stream->add_urls($urls); |