From a66ae6ebf27cd324915f415526dc6f637bb9eabe Mon Sep 17 00:00:00 2001 From: martijn Date: Fri, 22 Dec 2023 13:04:30 +0000 Subject: [PATCH] Call log_setverbosity() directly after getopt() so that debugging information during config-parsing can be displayed. OK tb@ --- usr.sbin/snmpd/snmpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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); -- 2.20.1