catch(...) exceptions, report it, and rethrow

This commit is contained in:
gabime
2017-11-24 20:58:43 +02:00
parent 587b528292
commit fd170b0fe1
3 changed files with 18 additions and 2 deletions

View File

@@ -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;
}
}