1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

more logging

This commit is contained in:
Jesse Duffield
2020-09-26 10:45:13 +10:00
parent 077f113618
commit f0a1544ebd
3 changed files with 8 additions and 0 deletions

View File

@ -2,12 +2,18 @@ package gui
import (
"os/exec"
"strings"
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/tasks"
)
func (gui *Gui) newCmdTask(viewName string, cmd *exec.Cmd) error {
gui.Log.WithField(
"command",
strings.Join(cmd.Args, " "),
).Debug("RunCommand")
view, err := gui.g.View(viewName)
if err != nil {
return nil // swallowing for now