diff --git a/nfq/nfqws.c b/nfq/nfqws.c index d067aea..1dcd04c 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -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) {