mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
catch(...) exceptions, report it, and rethrow
This commit is contained in:
@@ -76,6 +76,10 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* fmt, const Ar
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
_err_handler(ex.what());
|
||||
}
|
||||
catch(...) {
|
||||
_err_handler("Unknown exception in logger " + _name);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user