Skip to content
Permalink
Browse files

fix(snapcraft): improve logs

  • Loading branch information...
caarlos0 committed Mar 20, 2019
1 parent ec5dfaf commit 486d5303fdc56553e1cc5cec7348dbfc892f69f1
Showing with 1 addition and 2 deletions.
  1. +1 −2 internal/pipe/snapcraft/snapcraft.go
@@ -151,8 +151,6 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
metadata.Name = ctx.Config.Snapcraft.Name
}

log.Debugf("metadata: %+v", metadata)

for _, binary := range binaries {
log.WithField("path", binary.Path).
WithField("name", binary.Name).
@@ -192,6 +190,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
return err
}

log.WithField("file", file).Debugf("writing metadata file")
if err = ioutil.WriteFile(file, out, 0644); err != nil {
return err
}

0 comments on commit 486d530

Please sign in to comment.
You can’t perform that action at this time.