2
0

Add logging to rxMsg

Also benchmark what a log call costs
This commit is contained in:
Jack Christensen
2015-09-14 10:25:48 -05:00
parent 057da9f8e7
commit a2e078597b
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -929,6 +929,10 @@ func (c *Conn) rxMsg() (t byte, r *msgReader, err error) {
c.lastActivityTime = time.Now()
if c.logger != dlogger {
c.logger.Debug("rxMsg", "Type", string(t), "Size", c.mr.msgBytesRemaining)
}
return t, &c.mr, err
}