diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-26 10:45:13 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-26 11:00:50 +1000 |
commit | f0a1544ebde246bbf5d28c300fa6e808041b66bc (patch) | |
tree | 6d292c2fa6edce56798677c10b5508b48d86ca94 /pkg/commands | |
parent | 077f11361805417c15234c62a9f9aa022f913d43 (diff) |
more logging
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/exec_live_default.go | 1 | ||||
-rw-r--r-- | pkg/commands/git.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/commands/exec_live_default.go b/pkg/commands/exec_live_default.go index 0e43a6741..bb3ffcdc1 100644 --- a/pkg/commands/exec_live_default.go +++ b/pkg/commands/exec_live_default.go @@ -18,6 +18,7 @@ import ( // As return of output you need to give a string that will be written to stdin // NOTE: If the return data is empty it won't written anything to stdin func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) error { + c.Log.WithField("command", command).Info("RunCommand") cmd := c.ExecutableFromString(command) cmd.Env = append(cmd.Env, "LANG=en_US.UTF-8", "LC_ALL=en_US.UTF-8") diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 7b37968ed..722c217a2 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -911,6 +911,7 @@ func (c *GitCommand) PrepareInteractiveRebaseCommand(baseSha string, todo string } cmdStr := fmt.Sprintf("git rebase --interactive --autostash --keep-empty %s", baseSha) + c.Log.WithField("command", cmdStr).Info("RunCommand") splitCmd := str.ToArgv(cmdStr) cmd := c.OSCommand.command(splitCmd[0], splitCmd[1:]...) |