public function isHandling(CM_Log_Record $record) { if (true !== $this->_newRelicService->getEnabled()) { return false; } if (!$record->getContext()->getException()) { return false; } return parent::isHandling($record); }