public function updateLastMessage($response) { $node_name = $this->etva_node->getName(); if (!$response['success']) { $message = Etva::getLogMessage(array('name' => $node_name, 'info' => $response['message']), EtvaNodePeer::_ERR_CHECK_MDSTAT_); sfContext::getInstance()->getEventDispatcher()->notify(new sfEvent($node_name, 'event.log', array('message' => $message, 'priority' => EtvaEventLogger::ERR))); $msg_i18n = sfContext::getInstance()->getI18N()->__(EtvaNodePeer::_ERR_CHECK_MDSTAT_, array('%name%' => $node_name, '%info%' => $response['message'])); error_log($message); // send status to mastersite $apli = new Appliance(); $apli->updateStatusMessage($message); // mark node with fail $this->etva_node->setErrorMessage(self::CHECK_MDSTAT, $msg_i18n); } else { $this->clearLastMessage($response); } }