From 57020b6e3bb46c3c7c6357703f259bc5d2795f5e Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 27 Aug 2012 16:47:42 -0400 Subject: [PATCH] cc-3936: Added warning whenever files that don't exist in db are requested to be deleted. --- airtime_mvc/application/controllers/ApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 789179399..873a4e9e5 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -517,6 +517,8 @@ class ApiController extends Zend_Controller_Action if (is_null($file)) { $return_hash['error'] = "File doesn't exist in Airtime."; + Logging::warn("Attempt to delete file that doesn't exist. + Path: '$filepath'"); return $return_hash; } else {