Skip to content

Commit

Permalink
Small fix for DebugCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Oct 9, 2015
1 parent 4c5b611 commit 8f71d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand All @@ -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)
Expand Down

0 comments on commit 8f71d74

Please sign in to comment.