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:
Wolfgang Petroschka
2021-08-13 12:11:59 +02:00
parent c2550ac24a
commit 119467c580
3 changed files with 10 additions and 10 deletions

View File

@@ -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("")
}
}