mirror of https://gitee.com/bigwinds/arangodb
better error messages
This commit is contained in:
parent
66ec078bd5
commit
aa521d5412
|
@ -137,9 +137,14 @@ class SchedulerThread : public Thread {
|
||||||
|
|
||||||
LOG_TOPIC(DEBUG, Logger::THREADS) << "stopped ("
|
LOG_TOPIC(DEBUG, Logger::THREADS) << "stopped ("
|
||||||
<< _scheduler->infoStatus() << ")";
|
<< _scheduler->infoStatus() << ")";
|
||||||
|
} catch (std::exception const& ex) {
|
||||||
|
LOG_TOPIC(ERR, Logger::THREADS)
|
||||||
|
<< "restarting scheduler loop after caught exception: " << ex.what();
|
||||||
|
_scheduler->decRunning();
|
||||||
|
_scheduler->startNewThread();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOG_TOPIC(ERR, Logger::THREADS)
|
LOG_TOPIC(ERR, Logger::THREADS)
|
||||||
<< "scheduler loop caught an error, restarting";
|
<< "restarting scheduler loop after unknown exception";
|
||||||
_scheduler->decRunning();
|
_scheduler->decRunning();
|
||||||
_scheduler->startNewThread();
|
_scheduler->startNewThread();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue