Skip to content
Snippets Groups Projects
Commit a19fd7db authored by Eric Cano's avatar Eric Cano
Browse files

Added more detailed logging of errors in MemQueue<Request, Queue>::sharedAddToNewQueue().

parent 2dcfa894
No related branches found
No related tags found
No related merge requests found
......@@ -368,8 +368,12 @@ std::shared_ptr<SharedQueueLock<Queue, Request>> MemQueue<Request, Queue>::share
log::ScopedParamContainer params(logContext);
params.add("message", ex.getMessageValue());
logContext.log(log::ERR, "In MemQueue::sharedAddToNewQueue(): got an exception writing. Will propagate to other threads.");
} catch (std::exception & ex) {
log::ScopedParamContainer params(logContext);
params.add("exceptionWhat", ex.what());
logContext.log(log::ERR, "In MemQueue::sharedAddToNewQueue(): got a standard exception writing. Will propagate to other threads.");
} catch (...) {
logContext.log(log::ERR, "In MemQueue::sharedAddToNewQueue(): got a non cta exception writing. Will propagate to other threads.");
logContext.log(log::ERR, "In MemQueue::sharedAddToNewQueue(): got an unknown exception writing. Will propagate to other threads.");
}
size_t exceptionsNotPassed = 0;
// Something went wrong. We should inform the other threads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment