Commented out a bunch of Logging debug lines. There was a lot of output

being logged in the Zend log file.
This commit is contained in:
paul.baranowski 2012-03-25 12:57:20 -04:00 committed by Martin Konecny
parent a482a8fe07
commit f69a172ee1
6 changed files with 15 additions and 20 deletions

View file

@ -94,9 +94,6 @@ class Application_Model_Datatables {
Logging::debug($e->getMessage()); Logging::debug($e->getMessage());
} }
//display sql executed in airtime log for testing
Logging::debug($sql);
return array( return array(
"sEcho" => intval($data["sEcho"]), "sEcho" => intval($data["sEcho"]),
"iTotalDisplayRecords" => intval($totalDisplayRows), "iTotalDisplayRecords" => intval($totalDisplayRows),

View file

@ -273,8 +273,6 @@ class Application_Model_Schedule {
$sql .= " ORDER BY si.starts, sched.starts;"; $sql .= " ORDER BY si.starts, sched.starts;";
Logging::debug($sql);
$rows = $CC_DBC->GetAll($sql); $rows = $CC_DBC->GetAll($sql);
return $rows; return $rows;
} }

View file

@ -273,9 +273,9 @@ class Application_Model_Show {
} }
foreach($showDays as $showDay) { foreach($showDays as $showDay) {
Logging::log("Local show day is: {$showDay->getDbDay()}"); //Logging::log("Local show day is: {$showDay->getDbDay()}");
Logging::log("First show day is: {$showDay->getDbFirstShow()}"); //Logging::log("First show day is: {$showDay->getDbFirstShow()}");
Logging::log("Id show days is: {$showDay->getDbId()}"); //Logging::log("Id show days is: {$showDay->getDbId()}");
if (in_array($showDay->getDbDay(), $p_uncheckedDays)) { if (in_array($showDay->getDbDay(), $p_uncheckedDays)) {
$showDay->reload(); $showDay->reload();
@ -283,11 +283,11 @@ class Application_Model_Show {
//Logging::log("First show day is: {$showDay->getDbFirstShow()}"); //Logging::log("First show day is: {$showDay->getDbFirstShow()}");
//Logging::log("Id show days is: {$showDay->getDbId()}"); //Logging::log("Id show days is: {$showDay->getDbId()}");
$startDay = new DateTime("{$showDay->getDbFirstShow()} {$showDay->getDbStartTime()}", new DateTimeZone($showDay->getDbTimezone())); $startDay = new DateTime("{$showDay->getDbFirstShow()} {$showDay->getDbStartTime()}", new DateTimeZone($showDay->getDbTimezone()));
Logging::log("Show start day: {$startDay->format('Y-m-d H:i:s')}"); //Logging::log("Show start day: {$startDay->format('Y-m-d H:i:s')}");
$startDay->setTimezone(new DateTimeZone("UTC")); $startDay->setTimezone(new DateTimeZone("UTC"));
Logging::log("Show start day UTC: {$startDay->format('Y-m-d H:i:s')}"); //Logging::log("Show start day UTC: {$startDay->format('Y-m-d H:i:s')}");
$daysRemovedUTC[] = $startDay->format('w'); $daysRemovedUTC[] = $startDay->format('w');
Logging::log("UTC show day is: {$startDay->format('w')}"); //Logging::log("UTC show day is: {$startDay->format('w')}");
} }
} }
@ -301,7 +301,7 @@ class Application_Model_Show {
." AND starts > TIMESTAMP '$timestamp'" ." AND starts > TIMESTAMP '$timestamp'"
." AND show_id = $showId"; ." AND show_id = $showId";
Logging::log($sql); //Logging::log($sql);
$CC_DBC->query($sql); $CC_DBC->query($sql);
} }
@ -359,7 +359,7 @@ class Application_Model_Show {
."WHERE instance_id = (SELECT id FROM cc_show_instances WHERE show_id = $showId ORDER BY starts LIMIT 1) AND rebroadcast = 1 " ."WHERE instance_id = (SELECT id FROM cc_show_instances WHERE show_id = $showId ORDER BY starts LIMIT 1) AND rebroadcast = 1 "
."ORDER BY starts"; ."ORDER BY starts";
Logging::log($sql); //Logging::log($sql);
$rebroadcasts = $CC_DBC->GetAll($sql); $rebroadcasts = $CC_DBC->GetAll($sql);
@ -1263,7 +1263,7 @@ class Application_Model_Show {
$sql = "SELECT * FROM cc_show_rebroadcast WHERE show_id={$show_id}"; $sql = "SELECT * FROM cc_show_rebroadcast WHERE show_id={$show_id}";
$rebroadcasts = $CC_DBC->GetAll($sql); $rebroadcasts = $CC_DBC->GetAll($sql);
Logging::log('$start time of non repeating record '.$start); //Logging::log('$start time of non repeating record '.$start);
self::createRebroadcastInstances($rebroadcasts, $currentUtcTimestamp, $show_id, $show_instance_id, $start, $duration, $timezone); self::createRebroadcastInstances($rebroadcasts, $currentUtcTimestamp, $show_id, $show_instance_id, $start, $duration, $timezone);
} }
@ -1569,7 +1569,7 @@ class Application_Model_Show {
WHERE last_show IS NULL WHERE last_show IS NULL
OR first_show < '{$endTimeString}' AND last_show > '{$startTimeString}'"; OR first_show < '{$endTimeString}' AND last_show > '{$startTimeString}'";
Logging::log($sql); //Logging::log($sql);
$res = $CC_DBC->GetAll($sql); $res = $CC_DBC->GetAll($sql);
@ -1689,7 +1689,7 @@ class Application_Model_Show {
$showDay->setDbFirstShow($dt)->setDbStartTime($dt) $showDay->setDbFirstShow($dt)->setDbStartTime($dt)
->save(); ->save();
Logging::log("setting show's first show."); //Logging::log("setting show's first show.");
} }
/* Takes in a UTC DateTime object /* Takes in a UTC DateTime object

View file

@ -638,7 +638,7 @@ class Application_Model_ShowInstance {
WHERE s.instance_id = '{$this->_instanceId}' AND s.playout_status >= 0 WHERE s.instance_id = '{$this->_instanceId}' AND s.playout_status >= 0
ORDER BY starts"; ORDER BY starts";
Logging::log($sql); //Logging::log($sql);
$results = $CC_DBC->GetAll($sql); $results = $CC_DBC->GetAll($sql);