From 97fbe7bd5eb6558b6feb3ce306b63ccc474dc426 Mon Sep 17 00:00:00 2001 From: gempir Date: Thu, 6 Dec 2018 23:03:58 +0100 Subject: [PATCH] use better logger --- archiver/gzip.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/archiver/gzip.go b/archiver/gzip.go index 4a0e3ce..d516219 100644 --- a/archiver/gzip.go +++ b/archiver/gzip.go @@ -6,7 +6,7 @@ import ( "io/ioutil" "os" - "github.com/labstack/gommon/log" + log "github.com/sirupsen/logrus" ) func (a *Archiver) gzipFile(filePath string) { @@ -16,7 +16,8 @@ func (a *Archiver) gzipFile(filePath string) { return } defer file.Close() - log.Info("converting" + filePath) + + log.Infof("Archiving: %s", filePath) reader := bufio.NewReader(file) content, err := ioutil.ReadAll(reader)