Commit 9e84136e authored by Aaron Jacobs's avatar Aaron Jacobs

Don't run sprintf when unnecessary.

parent 30cdb148
...@@ -391,7 +391,9 @@ func (c *Connection) ReadOp() (ctx context.Context, op interface{}, err error) { ...@@ -391,7 +391,9 @@ func (c *Connection) ReadOp() (ctx context.Context, op interface{}, err error) {
} }
// Choose an ID for this operation for the purposes of logging, and log it. // Choose an ID for this operation for the purposes of logging, and log it.
c.debugLog(inMsg.Header().Unique, 1, "<- %s", describeRequest(op)) if c.debugLogger != nil {
c.debugLog(inMsg.Header().Unique, 1, "<- %s", describeRequest(op))
}
// Special case: handle interrupt requests inline. // Special case: handle interrupt requests inline.
if interruptOp, ok := op.(*interruptOp); ok { if interruptOp, ok := op.(*interruptOp); ok {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment