Features and enhancements (#70, #36, #34, #33, #32, #57, #40, #37) #90

Merged
TapTap merged 13 commits from fix/enhancements into main 2026-07-21 15:00:32 +02:00
Showing only changes of commit 0cbc873f5c - Show all commits
+2 -1
View File
@@ -14,7 +14,8 @@ void log_message(LogLevel log_level, const char* format, ...) {
if (log_level < current_log_level)
return;
time_t now = time(NULL);
const struct tm* t = localtime(&now);
struct tm result_buf;
const struct tm* t = localtime_r(&now, &result_buf);
fprintf(stderr, "%04d-%02d-%02d %02d:%02d:%02d [%s]: ", t->tm_year + 1900, t->tm_mon + 1,
t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, log_level_strings[log_level]);