projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Logging: add timestamps for eventdriven IO
[citadel.git]
/
citadel
/
modules
/
smtp
/
serv_smtpeventclient.c
diff --git
a/citadel/modules/smtp/serv_smtpeventclient.c
b/citadel/modules/smtp/serv_smtpeventclient.c
index 1698ab74773c1886d7152a3e6b088f1594b12abc..3037b0c0c65e39cb7f7a7fecb4c843365f2800a2 100644
(file)
--- a/
citadel/modules/smtp/serv_smtpeventclient.c
+++ b/
citadel/modules/smtp/serv_smtpeventclient.c
@@
-147,8
+147,9
@@
inline void FinalizeMessageSend_1(AsyncIO *IO)
Status = "Delivery failed temporarily; will retry later.";
EVS_syslog(LOG_INFO,
Status = "Delivery failed temporarily; will retry later.";
EVS_syslog(LOG_INFO,
- "SMTP: %s Recipient <%s> @ <%s> (%s) Statusmessage: %s\n",
+ "SMTP: %s
Time[%fs]
Recipient <%s> @ <%s> (%s) Statusmessage: %s\n",
Status,
Status,
+ Msg->IO.Now - Msg->IO.StartIO,
Msg->user,
Msg->node,
Msg->name,
Msg->user,
Msg->node,
Msg->name,
@@
-372,6
+373,9
@@
eNextState get_one_mx_host_ip_done(AsyncIO *IO)
struct hostent *hostent;
QueryCbDone(IO);
struct hostent *hostent;
QueryCbDone(IO);
+ EVS_syslog(LOG_DEBUG, "SMTP: %s Time[%fs]\n",
+ __FUNCTION__,
+ IO->Now - IO->DNS.Start);
hostent = Msg->HostLookup.VParsedDNSReply;
if ((Msg->HostLookup.DNSStatus == ARES_SUCCESS) &&
hostent = Msg->HostLookup.VParsedDNSReply;
if ((Msg->HostLookup.DNSStatus == ARES_SUCCESS) &&
@@
-467,7
+471,9
@@
eNextState smtp_resolve_mx_record_done(AsyncIO *IO)
QueryCbDone(IO);
QueryCbDone(IO);
- EVS_syslog(LOG_DEBUG, "SMTP: %s\n", __FUNCTION__);
+ EVS_syslog(LOG_DEBUG, "SMTP: %s Time[%fs]\n",
+ __FUNCTION__,
+ IO->Now - IO->DNS.Start);
pp = &Msg->Relay;
while ((pp != NULL) && (*pp != NULL) && ((*pp)->Next != NULL))
pp = &Msg->Relay;
while ((pp != NULL) && (*pp != NULL) && ((*pp)->Next != NULL))