From e30c1f9075301d6e08a7094d2e06b1dcaedb5c83 Mon Sep 17 00:00:00 2001 From: "Guy M. Allard" Date: Sun, 12 Aug 2018 09:53:24 -0400 Subject: [PATCH] Use format strings in logging. --- connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.go b/connection.go index 15a90d2..48606cd 100644 --- a/connection.go +++ b/connection.go @@ -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 } @@ -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 }