More logging

This commit is contained in:
drigato 2015-01-12 15:45:33 -05:00
parent 44b82fdd8a
commit 8f0f69abd9
2 changed files with 2 additions and 0 deletions

View File

@ -355,6 +355,7 @@ class LibraryController extends Zend_Controller_Action
Logging::info("aaa"); Logging::info("aaa");
$file = Application_Model_StoredFile::RecallById($id); $file = Application_Model_StoredFile::RecallById($id);
Logging::info("bbb"); Logging::info("bbb");
Logging::info($file);
if (isset($file)) { if (isset($file)) {
try { try {
$res = $file->delete(); $res = $file->delete();

View File

@ -376,6 +376,7 @@ SQL;
*/ */
public function delete() public function delete()
{ {
Logging::info("111aaa");
// Check if the file is scheduled to be played in the future // Check if the file is scheduled to be played in the future
if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->getId())) { if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->getId())) {
throw new DeleteScheduledFileException(); throw new DeleteScheduledFileException();