From 8f71d74fe2eebaee1a626e85360a05fc395fc80e Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Thu, 8 Oct 2015 17:04:34 -0700 Subject: [PATCH] Small fix for DebugCallback --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index 5de5c84..50dacc8 100644 --- a/conn.go +++ b/conn.go @@ -34,7 +34,7 @@ func NewConn(rwc io.ReadWriteCloser) *Conn { // Write is a simple function which will write the given line to the // underlying connection. func (c *Conn) Write(line string) { - c.DebugCallback("--> %s" + line) + c.DebugCallback("--> " + line) c.conn.Write([]byte(line)) c.conn.Write([]byte("\r\n")) } @@ -58,7 +58,7 @@ func (c *Conn) ReadMessage() (*Message, error) { return nil, err } - c.DebugCallback("<-- %s" + strings.TrimRight(line, "\r\n")) + c.DebugCallback("<-- " + strings.TrimRight(line, "\r\n")) // Parse the message from our line m := ParseMessage(line)