mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Added additional information for error handler
Useful when formatting log messages fails. Now you can tell which log message caused the problem.
This commit is contained in:
@@ -185,7 +185,7 @@ SPDLOG_INLINE void logger::sink_it_(const details::log_msg &msg)
|
||||
{
|
||||
sink->log(msg);
|
||||
}
|
||||
SPDLOG_LOGGER_CATCH()
|
||||
SPDLOG_LOGGER_CATCH(msg.payload)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ SPDLOG_INLINE void logger::flush_()
|
||||
{
|
||||
sink->flush();
|
||||
}
|
||||
SPDLOG_LOGGER_CATCH()
|
||||
SPDLOG_LOGGER_CATCH("")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user