fix: log timestamps are now updated

This commit is contained in:
Asger Gitz-Johansen 2024-09-18 19:46:27 +02:00
parent aae388897e
commit e1ab3f28d6

View File

@ -78,6 +78,7 @@ void log_log(const char* file, int line, int level, const char* fmt, ...) {
g_log_tm = localtime(&t); g_log_tm = localtime(&t);
} }
strftime(timestamp, sizeof(timestamp), "%H:%M:%S", g_log_tm); strftime(timestamp, sizeof(timestamp), "%H:%M:%S", g_log_tm);
g_log_tm = NULL;
const char* level_color = get_level_color(level); const char* level_color = get_level_color(level);
const char* level_name = get_level_name(level); const char* level_name = get_level_name(level);