From: martijn Date: Fri, 22 Dec 2023 13:04:30 +0000 (+0000) Subject: Call log_setverbosity() directly after getopt() so that debugging X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a66ae6ebf27cd324915f415526dc6f637bb9eabe;p=openbsd Call log_setverbosity() directly after getopt() so that debugging information during config-parsing can be displayed. OK tb@ --- 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);