All hands for America. Added robust debugging

This commit is contained in:
Rudi Grinberg 2012-09-11 17:23:07 -04:00
parent fc8b2096af
commit b8db419717
1 changed files with 6 additions and 4 deletions

View File

@ -552,11 +552,13 @@ class ApiController extends Zend_Controller_Action
return $return_hash;
}
Logging::info("action: $mode");
Logging::info("md: $md");
if( !$file ) {
Logging::info("action: $mode");
Logging::info("md: $md");
Logging::info("return: $return_hash");
}
$return_hash['fileid'] = $file->getId();
$return_hash['fileid'] = is_null($file) ? '-1' : $file->getId();
return $return_hash;
}