summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2023-12-22 13:04:31 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2023-12-22 13:04:31 +0000
commitc81c53797484dfaedf18dc36e688fbaea66e686b (patch)
treecc906288a6cae3fce13b9225ccc902c0e801c032 /usr.sbin
parenta94d1218ed00be16e315c16c3f76dec642957b13 (diff)
Call log_setverbosity() directly after getopt() so that debugging
information during config-parsing can be displayed. OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/snmpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/snmpd.c b/usr.sbin/snmpd/snmpd.c
index 2f35ede72f3..d3ecfd6f027 100644
--- a/usr.sbin/snmpd/snmpd.c
+++ b/usr.sbin/snmpd/snmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpd.c,v 1.49 2023/12/21 12:43:31 martijn Exp $ */
+/* $OpenBSD: snmpd.c,v 1.50 2023/12/22 13:04:30 martijn Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -192,6 +192,8 @@ main(int argc, char *argv[])
if (argc > 0)
usage();
+ log_setverbose(verbose);
+
if ((env = parse_config(conffile, flags)) == NULL)
exit(1);