aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-02-14 12:07:17 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-02-14 12:07:17 +0200
commitfe4dd5c7fe77591ee8d7780d3f5e2e9b9334c2c5 (patch)
treeba465cbde75e7f2e7dd5216246713bf6003a1bfd /src/main.c
parent45c6086f8c0c0f6fe1a46b950682abfdbf104687 (diff)
downloadvarnish-mib-fe4dd5c7fe77591ee8d7780d3f5e2e9b9334c2c5.tar.gz
varnish-mib-fe4dd5c7fe77591ee8d7780d3f5e2e9b9334c2c5.tar.bz2
Minor changes
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.