We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0ddaa6ff authored by mattl's avatar mattl

Handle exceptions in QueueHandler classes

parent 0482b7de
......@@ -91,7 +91,13 @@ class DBQueueManager extends QueueManager
$handler = $this->getHandler($qi->transport);
if ($handler) {
if ($handler->handle($item)) {
try {
$result = $handler->handle($item)
} catch (Exception $e) {
$result = false;
$this->_log(LOG_ERR, "[{$qi->transport}:$rep] Exception thrown: {$e->getMessage()}");
if ($result) {
$this->_log(LOG_INFO, "[{$qi->transport}:$rep] Successfully handled item");
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment