use better logger
This commit is contained in:
parent
a2e36a17e9
commit
97fbe7bd5e
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/labstack/gommon/log"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (a *Archiver) gzipFile(filePath string) {
|
func (a *Archiver) gzipFile(filePath string) {
|
||||||
|
@ -16,7 +16,8 @@ func (a *Archiver) gzipFile(filePath string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
log.Info("converting" + filePath)
|
|
||||||
|
log.Infof("Archiving: %s", filePath)
|
||||||
|
|
||||||
reader := bufio.NewReader(file)
|
reader := bufio.NewReader(file)
|
||||||
content, err := ioutil.ReadAll(reader)
|
content, err := ioutil.ReadAll(reader)
|
||||||
|
|
Loading…
Add table
Reference in a new issue