mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Don't rethrow after catch(...)
This commit is contained in:
parent
d51102a168
commit
78ea362e27
@ -72,8 +72,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const char *fmt, const Ar
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
_err_handler("Unknown exception in logger " + _name);
|
_err_handler("Unknown exception in logger " + _name);
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,8 +95,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const char *msg)
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
_err_handler("Unknown exception in logger " + _name);
|
_err_handler("Unknown exception in logger " + _name);
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,8 +118,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
_err_handler("Unknown exception in logger " + _name);
|
_err_handler("Unknown exception in logger " + _name);
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user