This commit is contained in:
gabime
2017-11-24 20:59:58 +02:00
parent fd170b0fe1
commit c41b6d28b5
5 changed files with 19 additions and 18 deletions

View File

@@ -77,10 +77,11 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* fmt, const Ar
{
_err_handler(ex.what());
}
catch(...) {
_err_handler("Unknown exception in logger " + _name);
throw;
}
catch(...)
{
_err_handler("Unknown exception in logger " + _name);
throw;
}
}
template <typename... Args>
@@ -96,7 +97,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* msg)
catch (const std::exception &ex)
{
_err_handler(ex.what());
}
}
}
template<typename T>
@@ -112,7 +113,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T& msg)
catch (const std::exception &ex)
{
_err_handler(ex.what());
}
}
}