Skip to content

Commit

Permalink
Use format strings in logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallard committed Aug 12, 2018
1 parent 1c79738 commit e30c1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (c *Connection) log(v ...interface{}) {
if ok {
c.logger.Printf("%s %s %d %v\n", c.session, fn, ld, v)
} else {
c.logger.Print(c.session, v)
c.logger.Printf("%s %v\n", c.session, v)
}
return
}
Expand All @@ -193,7 +193,7 @@ func (c *Connection) logx(v ...interface{}) {
if ok {
c.logger.Printf("%s %s %d %v\n", c.session, fn, ld, v)
} else {
c.logger.Print(c.session, v)
c.logger.Printf("%s %v\n", c.session, v)
}
return
}
Expand Down

0 comments on commit e30c1f9

Please sign in to comment.