Add 3 More log writing in files sharing app

This commit is contained in:
Brice Maron 2011-10-18 21:29:48 +02:00
Родитель b975f11514
Коммит 29368d1c58
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -15,6 +15,7 @@ foreach ($sources as $source) {
$source = $userDirectory.$source;
// If the file doesn't exist, it may be shared with the current user
} else if (!$source = OC_Share::getSource($userDirectory.$source)) {
OC_Log::write('files_sharing',"Shared file doesn't exists :".$source,OC_Log::ERROR);
echo "false";
}
try {
@ -23,6 +24,7 @@ foreach ($sources as $source) {
echo $shared->getToken();
}
} catch (Exception $exception) {
OC_Log::write('files_sharing',"Unexpected Error : ".$exception->getMessage(),OC_Log::ERROR);
echo "false";
}
}

Просмотреть файл

@ -282,6 +282,7 @@ class OC_Share {
return $result[0]['permissions'];
}
} else {
OC_Log::write('files_sharing',"Not existing parent folder : ".$target,OC_Log::ERROR);
return false;
}
}