mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
catch(...) exceptions, report it, and rethrow
This commit is contained in:
@@ -97,5 +97,11 @@ inline void spdlog::async_logger::_sink_it(details::log_msg& msg)
|
||||
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