From: Mikael Nordfeldth Date: Tue, 16 Aug 2016 18:27:41 +0000 (+0200) Subject: dbqueuemanager should ignore on no-result-exceptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc06c599bc94a82c1f602723032ff2de907f3a58;p=quix0rs-gnu-social.git dbqueuemanager should ignore on no-result-exceptions --- diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php index 4440a4d930..6a2952c28f 100644 --- a/lib/dbqueuemanager.php +++ b/lib/dbqueuemanager.php @@ -95,11 +95,14 @@ class DBQueueManager extends QueueManager } catch (NoQueueHandlerException $e) { $this->noHandlerFound($qi, $rep); return true; + } catch (NoResultException $e) { + $this->_log(LOG_ERR, "[{$qi->transport}:$rep] ".get_class($e).' thrown ('._ve($e->getMessage()).'), ignoring queue_item '._ve($qi->getID())); + $result = true; } catch (AlreadyFulfilledException $e) { - $this->_log(LOG_ERR, "[{$qi->transport}:$rep] AlreadyFulfilledException thrown: {$e->getMessage()}"); + $this->_log(LOG_ERR, "[{$qi->transport}:$rep] ".get_class($e).' thrown ('._ve($e->getMessage()).'), ignoring queue_item '._ve($qi->getID())); $result = true; } catch (Exception $e) { - $this->_log(LOG_ERR, "[{$qi->transport}:$rep] Exception thrown: {$e->getMessage()}"); + $this->_log(LOG_ERR, "[{$qi->transport}:$rep] Exception (".get_class($e).') thrown: '._ve($e->getMessage())); $result = false; }