mirror of
https://github.com/lxsang/ant-http
synced 2025-07-13 13:04:23 +02:00
log level should be configured in config file
This commit is contained in:
9
httpd.c
9
httpd.c
@ -339,7 +339,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
config_t *conf = config();
|
||||
// start syslog
|
||||
setlogmask(LOG_UPTO(LOG_NOTICE));
|
||||
if(conf->debug_enable == 1)
|
||||
{
|
||||
setlogmask(LOG_UPTO(LOG_NOTICE));
|
||||
}
|
||||
else
|
||||
{
|
||||
setlogmask(LOG_UPTO(LOG_ERR));
|
||||
}
|
||||
openlog(SERVER_NAME, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_DAEMON);
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
|
Reference in New Issue
Block a user