diff options
author | Nick White <git@njw.name> | 2020-10-20 18:12:36 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-10-20 18:12:36 +0100 |
commit | 644abdb177331107696b2caf3f0de8ac76a74702 (patch) | |
tree | 56dc6e82fc8a866dabbcfff43e41f30eb89fed09 | |
parent | f1864ab8bdabb9aa0010fd21af036e6850049612 (diff) |
Improve logging by using Println, which ensures there is a space between arguments, even if all are strings
-rw-r--r-- | aws.go | 2 | ||||
-rw-r--r-- | cmd/booktopipeline/main.go | 2 | ||||
-rw-r--r-- | local.go | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -478,7 +478,7 @@ func (a *AwsConn) StartInstances(n int) error { // Log records an item in the with the Logger. Arguments are handled // as with fmt.Println. func (a *AwsConn) Log(v ...interface{}) { - a.Logger.Print(v...) + a.Logger.Println(v...) } // mkpipeline sets up necessary buckets and queues for the pipeline diff --git a/cmd/booktopipeline/main.go b/cmd/booktopipeline/main.go index 62e4132..60d1f81 100644 --- a/cmd/booktopipeline/main.go +++ b/cmd/booktopipeline/main.go @@ -184,5 +184,5 @@ func main() { qname = "wipeonly" } - fmt.Println("Uploaded book to %s queue", qname) + fmt.Println("Uploaded book to queue", qname) } @@ -247,5 +247,5 @@ func (a *LocalConn) GetLogger() *log.Logger { // Log records an item in the with the Logger. Arguments are handled // as with fmt.Println. func (a *LocalConn) Log(v ...interface{}) { - a.Logger.Print(v...) + a.Logger.Println(v...) } |