Debug for TMF-790 db Zend_Registry get db logger Zend_Registry get log

1
2
3
4
5
6
7
// Debug for TMF-790
$db = Zend_Registry::get("db");
$logger = Zend_Registry::get('logger');
$survey = new Application_Model_Survey($db, (int) $this->survey_id);
if (in_array($this->email_send_state, array(1, 2)) && !$survey->isSent()) {
$logger->warn("Unconfirmed survey ready for sending: ID " . $this->survey_id);
}