From c4b3b5ae5f3bad0199d4f7bda1545285658355d1 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 20 Sep 2007 11:08:14 +0000 Subject: [PATCH] log starttls --- src/mail/ngx_mail_handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c index 273f13e76..d4082da87 100644 --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -691,7 +691,9 @@ ngx_mail_log_error(ngx_log_t *log, u_char *buf, size_t len) return p; } - p = ngx_snprintf(buf, len, ", server: %V", s->addr_text); + p = ngx_snprintf(buf, len, "%s, server: %V", + s->starttls ? " using starttls" : "", + s->addr_text); len -= p - buf; buf = p;