From 3986c8eec16b6ebff216c39c637f1762494defc8 Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Mon, 20 May 2019 14:34:11 -0700 Subject: [PATCH] add missing string variable in log statement in export.go + go fmt --- export.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/export.go b/export.go index e23b850..42715b9 100644 --- a/export.go +++ b/export.go @@ -14,9 +14,10 @@ import ( "archive/zip" "bytes" "encoding/csv" - "github.com/writeas/web-core/log" "strings" "time" + + "github.com/writeas/web-core/log" ) func exportPostsCSV(u *User, posts *[]PublicPost) []byte { @@ -37,7 +38,7 @@ func exportPostsCSV(u *User, posts *[]PublicPost) []byte { w := csv.NewWriter(&b) w.WriteAll(r) // calls Flush internally if err := w.Error(); err != nil { - log.Info("error writing csv:", err) + log.Info("error writing csv: %v", err) } return b.Bytes()