Log exceptions from queuedaemon.php if they're not already caught

This commit is contained in:
Brion Vibber 2010-01-28 22:05:14 -08:00
parent 864ce8e276
commit 288dc3452f

View File

@ -109,7 +109,13 @@ class QueueDaemon extends SpawningDaemon
$master = new QueueMaster($this->get_id());
$master->init($this->all);
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');