Refactored error handler
This commit is contained in:
parent
ea1bcdb0f9
commit
03bec4f984
@ -12,7 +12,7 @@ namespace details {
|
||||
void default_err_handler::handle_ex(const std::string &origin, const source_loc &loc, const std::exception &ex) const {
|
||||
std::lock_guard lk{mutex_};
|
||||
const auto tm_time = os::localtime();
|
||||
char date_buf[128];
|
||||
char date_buf[64];
|
||||
std::strftime(date_buf, sizeof(date_buf), "%Y-%m-%d %H:%M:%S", &tm_time);
|
||||
std::string msg;
|
||||
if (loc.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user