MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ReportExceptions

Method ReportExceptions

lib/base/workqueue.cpp:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void WorkQueue::ReportExceptions(const String& facility, bool verbose) const
174{
175 std::vector<boost::exception_ptr> exceptions = GetExceptions();
176
177 for (const auto& eptr : exceptions) {
178 Log(LogCritical, facility)
179 << DiagnosticInformation(eptr, verbose);
180 }
181
182 Log(LogCritical, facility)
183 << exceptions.size() << " error" << (exceptions.size() != 1 ? "s" : "");
184}
185
186size_t WorkQueue::GetLength() const
187{

Callers 1

CommitItemsMethod · 0.80

Calls 2

LogClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected