when it is set, and the current setlogmask(LOG_UPTO(LOG_INFO)) when it
is not set.
-/* $OpenBSD: dhclient.c,v 1.310 2014/05/23 15:26:22 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.311 2014/05/23 17:36:59 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
/* Initially, log errors to stderr as well as to syslogd. */
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
+#ifdef DEBUG
+ setlogmask(LOG_UPTO(LOG_DEBUG));
+#else
setlogmask(LOG_UPTO(LOG_INFO));
+#endif
while ((ch = getopt(argc, argv, "c:di:l:L:qu")) != -1)
switch (ch) {