From 644abdb177331107696b2caf3f0de8ac76a74702 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 20 Oct 2020 18:12:36 +0100 Subject: Improve logging by using Println, which ensures there is a space between arguments, even if all are strings --- aws.go | 2 +- cmd/booktopipeline/main.go | 2 +- local.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aws.go b/aws.go index da89146..5ebc79f 100644 --- a/aws.go +++ b/aws.go @@ -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) } diff --git a/local.go b/local.go index c2e16f6..72c4e79 100644 --- a/local.go +++ b/local.go @@ -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...) } -- cgit v1.2.1-24-ge1ad