fix: log timestamps are now updated
This commit is contained in:
parent
aae388897e
commit
e1ab3f28d6
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user