MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / triggerDispatch

Method triggerDispatch

src/thundersvm/util/log.cpp:2511–2531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

LogDispatcherClass · 0.85
LogMessageClass · 0.85
WriterClass · 0.85
abortFunction · 0.85
dispatchMethod · 0.80
releaseLockMethod · 0.80
hasFlagMethod · 0.45

Tested by

no test coverage detected