logging changed to spdlog

This commit is contained in:
d1str4ught
2025-09-22 04:14:59 +02:00
parent 37b15a7a98
commit 4f75aa1acd
201 changed files with 33830 additions and 637 deletions

View File

@@ -60,6 +60,8 @@ void emergency_sig(int sig)
int main()
{
log_init();
WriteVersion();
#ifdef OS_FREEBSD
@@ -111,6 +113,7 @@ int main()
sys_log(0, "WAITING_QUERY_COUNT %d", iCount);
}
log_destroy();
return 1;
}
@@ -160,15 +163,6 @@ int Start()
return false;
}
log_set_expiration_days(3);
if (CConfig::instance().GetValue("LOG_KEEP_DAYS", &tmpValue))
{
tmpValue = MINMAX(3, tmpValue, 30);
log_set_expiration_days(tmpValue);
fprintf(stderr, "Setting log keeping days to %d\n", tmpValue);
}
thecore_init(heart_beat, emptybeat);
signal_timer_enable(60);