summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 14:29:34 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 14:29:34 +0200
commit3f9ac6405a4823349e30be1f9d874ce813ae53f0 (patch)
treedb7591ceffba8fb1cbc33bda949471b5e62197be /apps/media
parent8a69116e94be36640896ae1503f53acc303c20df (diff)
downloadnextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.tar.gz
nextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.zip
port some of the log call to the new public api
more to come
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_scanner.php8
-rw-r--r--apps/media/server/xml.server.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php
index 78c6ad491da..5d652c1b39d 100644
--- a/apps/media/lib_scanner.php
+++ b/apps/media/lib_scanner.php
@@ -72,23 +72,23 @@ class OC_MEDIA_SCANNER{
$data=@self::$getID3->analyze($file);
getid3_lib::CopyTagsToComments($data);
if(!isset($data['comments'])){
- OC_Log::write('media',"error reading id3 tags in '$file'",OC_Log::WARN);
+ OCP\Util::writeLog('media',"error reading id3 tags in '$file'",OC_Log::WARN);
return;
}
if(!isset($data['comments']['artist'])){
- OC_Log::write('media',"error reading artist tag in '$file'",OC_Log::WARN);
+ OCP\Util::writeLog('media',"error reading artist tag in '$file'",OC_Log::WARN);
$artist='unknown';
}else{
$artist=stripslashes($data['comments']['artist'][0]);
}
if(!isset($data['comments']['album'])){
- OC_Log::write('media',"error reading album tag in '$file'",OC_Log::WARN);
+ OCP\Util::writeLog('media',"error reading album tag in '$file'",OC_Log::WARN);
$album='unknown';
}else{
$album=stripslashes($data['comments']['album'][0]);
}
if(!isset($data['comments']['title'])){
- OC_Log::write('media',"error reading title tag in '$file'",OC_Log::WARN);
+ OCP\Util::writeLog('media',"error reading title tag in '$file'",OC_Log::WARN);
$title='unknown';
}else{
$title=stripslashes($data['comments']['title'][0]);
diff --git a/apps/media/server/xml.server.php b/apps/media/server/xml.server.php
index 52978383014..1ef48d551b5 100644
--- a/apps/media/server/xml.server.php
+++ b/apps/media/server/xml.server.php
@@ -37,7 +37,7 @@ foreach($arguments as &$argument){
}
@ob_clean();
if(isset($arguments['action'])){
- OC_Log::write('media','ampache '.$arguments['action'].' request', OC_Log::DEBUG);
+ OCP\Util::writeLog('media','ampache '.$arguments['action'].' request', OC_Log::DEBUG);
switch($arguments['action']){
case 'songs':
OC_MEDIA_AMPACHE::songs($arguments);