Skip to content

Commit

Permalink
fix: log docker args on debug
Browse files Browse the repository at this point in the history
refs #2438

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Sep 1, 2021
1 parent c08bb7f commit 1052ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pipe/docker/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func runCommand(ctx context.Context, dir, binary string, args ...string) error {
cmd.Stderr = io.MultiWriter(logext.NewWriter(fields, logext.Error), w)
cmd.Stdout = io.MultiWriter(logext.NewWriter(fields, logext.Info), w)

log.WithFields(fields).Debug("running")
log.WithFields(fields).WithField("args", args[1:]).Debug("running")
if err := cmd.Run(); err != nil {
return fmt.Errorf("%w: %s", err, b.String())
}
Expand Down

1 comment on commit 1052ce1

@vercel
Copy link

@vercel vercel bot commented on 1052ce1 Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.