basic_host: fix warning message
@@ -255,7 +255,7 @@ func (h *BasicHost) newStreamHandler(s inet.Stream) {
}
logf("protocol EOF: %s (took %s)", s.Conn().RemotePeer(), took)
} else {
- log.Warning("protocol mux failed: %s (took %s)", err, took)
+ log.Warningf("protocol mux failed: %s (took %s)", err, took)
}
s.Close()
return
