diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |