mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
nfqws: open syslog only if --debug=syslog
This commit is contained in:
parent
ea9435a737
commit
d6d48d26bf
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user