*
* @throws Horde_History_Exception
*/
- public function __construct(Horde_Db_Adapter $db, Horde_Log_Logger $logger)
+ public function __construct(Horde_Db_Adapter $db)
{
$this->_db = $db;
- $this->_logger = $logger;
}
/**
' history_extra = ? WHERE history_id = ?', $values
);
} catch (Horde_Db_Exception $e) {
- if ($this->_logger) {
- $this->_logger->err($e);
- throw new Horde_History_Exception($e);
- }
+ throw new Horde_History_Exception($e);
}
$done = true;
' VALUES (?, ?, ?, ?, ?, ?)', $values
);
} catch (Horde_Db_Exception $e) {
- if ($this->_logger) {
- $this->_logger->err($e);
- throw new Horde_History_Exception($e);
- }
+ throw new Horde_History_Exception($e);
}
}
}