| 2509 | } |
| 2510 | |
| 2511 | void Writer::triggerDispatch(void) { |
| 2512 | if (m_proceed) { |
| 2513 | base::LogDispatcher(m_proceed, LogMessage(m_level, m_file, m_line, m_func, m_verboseLevel, |
| 2514 | m_logger), m_dispatchAction).dispatch(); |
| 2515 | } |
| 2516 | if (m_logger != nullptr) { |
| 2517 | m_logger->stream().str(ELPP_LITERAL("")); |
| 2518 | m_logger->releaseLock(); |
| 2519 | } |
| 2520 | if (m_proceed && m_level == Level::Fatal |
| 2521 | && !ELPP->hasFlag(LoggingFlag::DisableApplicationAbortOnFatalLog)) { |
| 2522 | base::Writer(Level::Warning, m_file, m_line, m_func).construct(1, base::consts::kDefaultLoggerId) |
| 2523 | << "Aborting application. Reason: Fatal log at [" << m_file << ":" << m_line << "]"; |
| 2524 | std::stringstream reasonStream; |
| 2525 | reasonStream << "Fatal log at [" << m_file << ":" << m_line << "]" |
| 2526 | << " If you wish to disable 'abort on fatal log' please use " |
| 2527 | << "el::Helpers::addFlag(el::LoggingFlag::DisableApplicationAbortOnFatalLog)"; |
| 2528 | base::utils::abort(1, reasonStream.str()); |
| 2529 | } |
| 2530 | m_proceed = false; |
| 2531 | } |
| 2532 | |
| 2533 | // PErrorWriter |
| 2534 |
nothing calls this directly
no test coverage detected