summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-30 21:45:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-30 21:45:51 +0000
commit9bfe4a4ff82b7fc59289e18100365fcaab8dc9b5 (patch)
treee244725772291d3f5d517d1e31eceeb928e90ca3 /modules
parent278434b60106387171ab51d036b3195d121de46f (diff)
downloadampache-9bfe4a4ff82b7fc59289e18100365fcaab8dc9b5.tar.gz
ampache-9bfe4a4ff82b7fc59289e18100365fcaab8dc9b5.tar.bz2
ampache-9bfe4a4ff82b7fc59289e18100365fcaab8dc9b5.zip
removed last vestiages of log_event
Diffstat (limited to 'modules')
-rw-r--r--modules/amazon/AmazonSearchEngine.class.php6
-rw-r--r--modules/localplay/icecast.controller.php10
2 files changed, 5 insertions, 11 deletions
diff --git a/modules/amazon/AmazonSearchEngine.class.php b/modules/amazon/AmazonSearchEngine.class.php
index f909b9ff..700d4e95 100644
--- a/modules/amazon/AmazonSearchEngine.class.php
+++ b/modules/amazon/AmazonSearchEngine.class.php
@@ -120,7 +120,7 @@ class AmazonSearch {
"&Operation=ItemSearch&Artist=" . urlencode($terms['artist']) . "&Title=" . urlencode($terms['album']) .
"&Keywords=" . urlencode($terms['keywords']) . "&SearchIndex=" . $type;
- log_event($GLOBALS['user']->username,'amazon-search-results',"_currentPage = " . $this->_currentPage);
+ debug_event('amazon-search-results',"_currentPage = " . $this->_currentPage,'3');
if($this->_currentPage != 0){
$url = $url . "&ItemPage=" . ($this->_currentPage+1);
}
@@ -197,9 +197,7 @@ class AmazonSearch {
$this->_sourceTag = trim($cdata);
break;
case 'TotalPages':
- if(conf('debug')){
- log_event($GLOBALS['user']->username,'amazon-search-results',"TotalPages= ". trim($cdata));
- }
+ debug_event('amazon-search-results',"TotalPages= ". trim($cdata),'5');
$this->_maxPage = trim($cdata);
break;
default:
diff --git a/modules/localplay/icecast.controller.php b/modules/localplay/icecast.controller.php
index e792549e..c95fd96a 100644
--- a/modules/localplay/icecast.controller.php
+++ b/modules/localplay/icecast.controller.php
@@ -113,8 +113,7 @@ class AmpacheIcecast {
/* Open the file for writing */
if (!$handle = @fopen($filename, "w")) {
- log_event($_SESSION['userdata']['username'],"icecast","Fopen: $filename Failed");
- //echo _("Error, cannot write") . " $filename<br>\n";
+ debug_event('icecast',"Fopen: $filename Failed",'3');
return false;
}
@@ -125,8 +124,7 @@ class AmpacheIcecast {
//echo "$song->file<br>\n";
$line = "$song->file\n";
if (!fwrite($handle, $line)) {
- log_event($_SESSION['userdata']['username'],"icecast","Fwrite: Unabled to write $line into $filename");
- //echo _("Error, cannot write song in file") . " $song->file --&gt; $filename";
+ debug_event('icecast',"Fwrite: Unabled to write $line into $filename",'3');
return false;
} // if write fails
@@ -197,9 +195,7 @@ class AmpacheIcecast {
//echo "Starting Server...\n";
$cmd = conf('localplay_icecast_command') . " -c " . conf('localplay_icecast_config') . " -F " . conf('localplay_icecast_tracklist') . " -B";
- if (conf('debug')) {
- log_event($_SESSION['userdata']['username'],"icecast","Exec: $cmd");
- }
+ debug_event('icecast',"Exec: $cmd",'5');
exec($cmd);
}