From 72fcb82a652817e08e9252f7946c1b899dbeb3e6 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Wed, 6 Aug 2014 10:04:45 +1000 Subject: [PATCH] Add "Timeout trace" to asyncqueue trace logging --- asyncqueue.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/asyncqueue.c b/asyncqueue.c index 1d1359bd..d894e2b3 100644 --- a/asyncqueue.c +++ b/asyncqueue.c @@ -470,6 +470,13 @@ static int CommandTimeout(void *cntx, int mode) StartCommand(self); } else { int iRet; + if (self->trace) { + struct timeval tv; + gettimeofday(&tv, NULL); + SICSLogTimePrintf(eLog, &tv, + "Timeout Trace on AsyncQueue %s", self->queue_name); + SICSLogWriteHexTime(myCmd->tran->inp_buf, myCmd->tran->inp_idx, eLog, &tv); + } iRet = self->protocol->handleEvent(self->protocol, myCmd->tran, AQU_TIMEOUT);