nfqws: open syslog only if --debug=syslog

This commit is contained in:
bol-van 2024-08-23 15:31:07 +03:00
parent ea9435a737
commit d6d48d26bf

View File

@ -1102,6 +1102,7 @@ int main(int argc, char **argv)
{
params.debug = true;
params.debug_target = LOG_TARGET_SYSLOG;
openlog(progname,LOG_PID,LOG_USER);
}
else
{
@ -1666,9 +1667,6 @@ int main(int argc, char **argv)
}
}
if (params.debug && params.debug_target==LOG_TARGET_SYSLOG)
openlog(progname,LOG_PID,LOG_USER);
#ifdef __linux__
if (params.qnum<0)
{