mirror of
https://github.com/bol-van/zapret.git
synced 2025-08-19 00:23:29 +03:00
nfqws: open syslog only if --debug=syslog
This commit is contained in:
@@ -1102,6 +1102,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
params.debug = true;
|
params.debug = true;
|
||||||
params.debug_target = LOG_TARGET_SYSLOG;
|
params.debug_target = LOG_TARGET_SYSLOG;
|
||||||
|
openlog(progname,LOG_PID,LOG_USER);
|
||||||
}
|
}
|
||||||
else
|
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__
|
#ifdef __linux__
|
||||||
if (params.qnum<0)
|
if (params.qnum<0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user