diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-12-12 10:35:53 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-12-12 10:35:53 +0000 |
commit | c13fa251f027e1a105890118763b4a9819103ef3 (patch) | |
tree | 6178b183b993f1ebe2e1db255d3f3394d0436d23 /usr.sbin | |
parent | 7f450e4ec00de37e01be7d244263216bd8bfe578 (diff) |
add a log_trace() for debugging purposes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 6de11e658cc..0353b8f65aa 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.250 2015/12/12 10:33:21 gilles Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.251 2015/12/12 10:35:52 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -493,6 +493,10 @@ smtp_session(struct listener *listener, int sock, (void)strlcpy(s->smtpname, listener->hostname, sizeof(s->smtpname)); + log_trace(TRACE_SMTP, "smtp: %p: connected to listener %p " + "[hostname=%s, port=%d, tag=%s]", s, listener, + listener->hostname, ntohs(listener->port), listener->tag); + /* Setup parser and callbacks before smtp_connected() can be called */ rfc2822_parser_init(&s->rfc2822_parser); rfc2822_header_default_callback(&s->rfc2822_parser, |