1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-06-02 23:27:44 +02:00

chore: improved log output

This commit is contained in:
Carlos Alexandro Becker 2018-10-10 12:49:50 -03:00 committed by Carlos Alexandro Becker
parent 6c79a6c51a
commit 9628eb8f89

View File

@ -89,7 +89,8 @@ func create(ctx *context.Context, binaries []artifact.Artifact) error {
return fmt.Errorf("failed to create directory %s: %s", archivePath, err.Error())
}
defer archiveFile.Close() // nolint: errcheck
log.WithField("archive", archivePath).Info("creating")
var log = log.WithField("archive", archivePath)
log.Info("creating")
var a = archive.New(archiveFile)
defer a.Close() // nolint: errcheck