summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/queue_backend.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2012-11-12 14:58:53 +0000
committereric <eric@openbsd.org>2012-11-12 14:58:53 +0000
commit8261493423693d282d79f22f629fe938b941f97d (patch)
tree1441cf41dc3edc5f14f3f2d803e9d3feb24c21a1 /usr.sbin/smtpd/queue_backend.c
parentrequire scan_scaled to set errno to EINVAL rather than ERANGE if it (diff)
downloadwireguard-openbsd-8261493423693d282d79f22f629fe938b941f97d.tar.xz
wireguard-openbsd-8261493423693d282d79f22f629fe938b941f97d.zip
Cleanups and improvements:
* Log more events (especially client session) and use a better scheme for that: each messages is prefixed with a token to easily identify its class: - info/warn/debug: general server messages - smtp-in: smtp client connections - relay: status update for relayed messages - delivery: status update for local deliveries * Implement "smtpctl monitor" to display updates of selected internal counters. * When reloading the on-disk queue at startup do not commit a message if no envelope was submitted for that message. * Remove unused stuff in the config parser. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/queue_backend.c')
-rw-r--r--usr.sbin/smtpd/queue_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c
index 9de7e2ecd49..27cef8be6fb 100644
--- a/usr.sbin/smtpd/queue_backend.c
+++ b/usr.sbin/smtpd/queue_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue_backend.c,v 1.39 2012/10/09 13:39:00 eric Exp $ */
+/* $OpenBSD: queue_backend.c,v 1.40 2012/11/12 14:58:53 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -287,7 +287,7 @@ queue_envelope_load(uint64_t evpid, struct envelope *ep)
ep->id = evpid;
return (1);
}
- log_debug("invalid envelope %016" PRIx64 ": %s", ep->id, e);
+ log_debug("debug: invalid envelope %016" PRIx64 ": %s", ep->id, e);
}
return (0);
}