added catch macro and fixed some tests

This commit is contained in:
gabime
2018-05-24 00:18:55 +03:00
parent b9d7c45e40
commit 8901cbffe0
6 changed files with 15 additions and 446 deletions

View File

@@ -179,4 +179,7 @@ using filename_t = std::wstring;
using filename_t = std::string;
#endif
#define SPDLOG_CATCH_AND_HANDLE catch (const std::exception &ex) {_err_handler(ex.what());}\
catch (...) {_err_handler("Unknown exeption in logger");}
} // namespace spdlog