| 171 | } |
| 172 | |
| 173 | void 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 | |
| 186 | size_t WorkQueue::GetLength() const |
| 187 | { |
no test coverage detected