From: Brion Vibber Date: Fri, 29 Jan 2010 06:05:14 +0000 (-0800) Subject: Log exceptions from queuedaemon.php if they're not already caught X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=288dc3452f3c274d2165d8e7d502631a6eacc97c;p=quix0rs-gnu-social.git Log exceptions from queuedaemon.php if they're not already caught --- diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php index c2e2351c39..30a8a96026 100755 --- a/scripts/queuedaemon.php +++ b/scripts/queuedaemon.php @@ -109,7 +109,13 @@ class QueueDaemon extends SpawningDaemon $master = new QueueMaster($this->get_id()); $master->init($this->all); - $master->service(); + try { + $master->service(); + } catch (Exception $e) { + common_log(LOG_ERR, "Unhandled exception: " . $e->getMessage() . ' ' . + str_replace("\n", " ", $e->getTraceAsString())); + return self::EXIT_ERR; + } $this->log(LOG_INFO, 'finished servicing the queue');