diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-11-19 19:05:54 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-11-19 20:05:48 +0000 |
commit | 5c161fa615ab4a2d40170fedd71d1b9a7f079ff6 (patch) | |
tree | fd392f032187ab1215a8dcc18563bdb89a1b031b /src | |
parent | 46e872abb44a2589488ec47febaf376c89688c1c (diff) |
Logging: add I= element to transport-defer lines. Bug 2675
Diffstat (limited to 'src')
-rw-r--r-- | src/src/deliver.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/src/deliver.c b/src/src/deliver.c index 9c4c1a746..4e6f08f89 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -1325,20 +1325,10 @@ else if (driver_kind) g = string_fmt_append(g, " defer (%d)", addr->basic_errno); if (addr->basic_errno > 0) - g = string_append(g, 2, US": ", - US strerror(addr->basic_errno)); + g = string_append(g, 2, US": ", US strerror(addr->basic_errno)); if (addr->host_used) - { - g = string_append(g, 5, - US" H=", addr->host_used->name, - US" [", addr->host_used->address, US"]"); - if (LOGGING(outgoing_port)) - { - int port = addr->host_used->port; - g = string_fmt_append(g, ":%d", port == PORT_NONE ? 25 : port); - } - } + g = d_hostlog(g, addr); if (LOGGING(deliver_time)) g = string_append(g, 2, US" DT=", string_timediff(&addr->delivery_time)); |