commit | d12126f864d2660829b33a77bdf2cd3a578b9935 | [log] [tgz] |
---|---|---|
author | iamqizhao <toqizhao@gmail.com> | Thu Oct 01 18:08:09 2015 -0700 |
committer | iamqizhao <toqizhao@gmail.com> | Thu Oct 01 18:08:09 2015 -0700 |
tree | 4fc2f40bc1ec76083ca754d7c676258fe1eb68e7 | |
parent | 00c7deef344414c20e199e2f7af42fc5d935eade [diff] |
show deadline on server side trace
diff --git a/server.go b/server.go index 08e2ea9..049e809 100644 --- a/server.go +++ b/server.go
@@ -403,7 +403,7 @@ ss.traceInfo.firstLine.client = false ss.traceInfo.firstLine.remoteAddr = t.RemoteAddr() if dl, ok := ctx.Deadline(); ok { - traceInfo.firstLine.deadline = dl.Sub(time.Now()) + ss.traceInfo.firstLine.deadline = dl.Sub(time.Now()) } ss.traceInfo.tr.LazyLog(&ss.traceInfo.firstLine, false) ss.ctx = trace.NewContext(ss.ctx, ss.traceInfo.tr)