Refactored error handler

This commit is contained in:
gabime 2025-01-04 18:28:49 +02:00
parent ea1bcdb0f9
commit 03bec4f984

View File

@ -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()) {