logging changed to spdlog
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user