summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-10-04 18:25:40 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-10-04 18:25:40 +0000
commit0df231583402364f3fd4921e5803ec4ec72f942e (patch)
tree264b42a2db50449a4d003b38866a2c3595d542cc /usr.sbin/smtpd
parent7c324e9ea63a12dacd00bf7dc1608165c5b601aa (diff)
delay the call to log_debug() for displaying the backends used until
the "real" debug mode is set. ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtpd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 4b87cb6e45d..8766ddb4251 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.173 2012/10/03 17:58:03 gilles Exp $ */
+/* $OpenBSD: smtpd.c,v 1.174 2012/10/04 18:25:39 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -577,10 +577,6 @@ main(int argc, char *argv[])
if (ckdir(PATH_SPOOL PATH_INCOMING, 0700, env->sc_pw->pw_uid, 0, 1) == 0)
errx(1, "error in incoming directory setup");
- log_debug("using \"%s\" queue backend", backend_queue);
- log_debug("using \"%s\" scheduler backend", backend_scheduler);
- log_debug("using \"%s\" stat backend", backend_stat);
-
env->sc_queue = queue_backend_lookup(backend_queue);
if (env->sc_queue == NULL)
errx(1, "could not find queue backend \"%s\"", backend_queue);
@@ -607,6 +603,9 @@ main(int argc, char *argv[])
if (daemon(0, 0) == -1)
err(1, "failed to daemonize");
+ log_debug("using \"%s\" queue backend", backend_queue);
+ log_debug("using \"%s\" scheduler backend", backend_scheduler);
+ log_debug("using \"%s\" stat backend", backend_stat);
log_info("startup%s", (debug > 1)?" [debug mode]":"");
if (env->sc_hostname[0] == '\0')