From 33f397f5770a76c4061fa7bf999ce9cdaf64bb21 Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 15 Aug 2014 16:25:37 -0400 Subject: [PATCH] remove memory usage log statements --- airtime_mvc/application/models/Schedule.php | 3 +-- airtime_mvc/application/services/ShowService.php | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 2c392855f..b0d47862c 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -967,7 +967,6 @@ SQL; public static function getSchedule($p_fromDateTime = null, $p_toDateTime = null) { - Logging::info(memory_get_usage()/(1024*1024)); //generate repeating shows if we are fetching the schedule //for days beyond the shows_populated_until value in cc_pref $needScheduleUntil = $p_toDateTime; @@ -976,7 +975,7 @@ SQL; $needScheduleUntil->add(new DateInterval("P1D")); } Application_Model_Show::createAndFillShowInstancesPastPopulatedUntilDate($needScheduleUntil); - Logging::info(memory_get_usage()/(1024*1024)); + list($range_start, $range_end) = self::getRangeStartAndEnd($p_fromDateTime, $p_toDateTime); $data = array(); diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index d9e9fb0c8..34fa6e689 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -287,7 +287,6 @@ class Application_Service_ShowService */ public function delegateInstanceCreation($daysAdded=null, $end=null, $fillInstances=false) { - Logging::info(memory_get_usage()/(1024*1024)); $populateUntil = $this->getPopulateShowUntilDateTIme(); if (is_null($this->ccShow)) { @@ -319,7 +318,6 @@ class Application_Service_ShowService $ccShows = array(); foreach ($ccShowDays as $day) { - Logging::info(memory_get_usage()/(1024*1024)); $this->ccShow = $day->getCcShow(); $this->isRecorded = $this->ccShow->isRecorded(); @@ -334,7 +332,6 @@ class Application_Service_ShowService $this->createNonRepeatingInstance($day, $populateUntil); break; case REPEAT_WEEKLY: - Logging::info(memory_get_usage()/(1024*1024)); $this->createWeeklyRepeatInstances($day, $populateUntil, REPEAT_WEEKLY, new DateInterval("P7D"), $daysAdded); break; @@ -358,7 +355,6 @@ class Application_Service_ShowService break; } } - Logging::info(memory_get_usage()/(1024*1024)); foreach ($ccShows as $ccShow) { if (($this->isUpdate || $fillInstances) && $ccShow->isLinked()) { @@ -371,7 +367,6 @@ class Application_Service_ShowService $this->ccShow, $this->linkedShowContent); }*/ - Logging::info(memory_get_usage()/(1024*1024)); return $this->ccShow; }