aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index a8d089f..01a24a9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -161,6 +161,9 @@ main(int argc, char **argv)
netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_ROLE, 1);
+ if (!log_set)
+ snmp_enable_stderrlog();
+
SOCK_STARTUP;
init_agent(progname);
init_varnish_mib();
@@ -182,9 +185,6 @@ main(int argc, char **argv)
snmp_enable_syslog_ident(progname, LOG_DAEMON);
snmp_disable_stderrlog();
}
- } else {
- if (!log_set)
- snmp_enable_stderrlog();
}
pidfile_create(pid_file);

Return to:

Send suggestions and report system problems to the System administrator.