diff --git a/format/formatter.go b/format/formatter.go index e8e84539..dbe2f114 100644 --- a/format/formatter.go +++ b/format/formatter.go @@ -83,6 +83,9 @@ func (f *Formatter) Apply(ctx context.Context, files []*walk.File, filter bool) cmd := exec.CommandContext(ctx, f.executable, args...) cmd.Dir = f.workingDir + // log out the command being executed + f.log.Debugf("executing: %s", cmd.String()) + if out, err := cmd.CombinedOutput(); err != nil { if len(out) > 0 { _, _ = fmt.Fprintf(os.Stderr, "%s error:\n%s\n", f.name, out)