1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-13 00:07:59 +02:00

remove time logging

This commit is contained in:
Jesse Duffield 2018-08-11 12:35:17 +10:00
parent 7aa884ed8f
commit b2fbccd392
2 changed files with 1 additions and 4 deletions

1
ZHgalGrWSF Normal file
View File

@ -0,0 +1 @@
GaUMygWjJa

View File

@ -107,13 +107,11 @@ func mergeGitStatusFiles(oldGitFiles, newGitFiles []GitFile) []GitFile {
} }
func runDirectCommand(command string) (string, error) { func runDirectCommand(command string) (string, error) {
timeStart := time.Now()
commandLog(command) commandLog(command)
cmdOut, err := exec. cmdOut, err := exec.
Command(state.Platform.shell, state.Platform.shellArg, command). Command(state.Platform.shell, state.Platform.shellArg, command).
CombinedOutput() CombinedOutput()
devLog("run direct command time for command: ", command, time.Now().Sub(timeStart))
return sanitisedCommandOutput(cmdOut, err) return sanitisedCommandOutput(cmdOut, err)
} }
@ -218,12 +216,10 @@ func sanitisedCommandOutput(output []byte, err error) (string, error) {
} }
func runCommand(command string) (string, error) { func runCommand(command string) (string, error) {
commandStartTime := time.Now()
commandLog(command) commandLog(command)
splitCmd := strings.Split(command, " ") splitCmd := strings.Split(command, " ")
devLog(splitCmd) devLog(splitCmd)
cmdOut, err := exec.Command(splitCmd[0], splitCmd[1:]...).CombinedOutput() cmdOut, err := exec.Command(splitCmd[0], splitCmd[1:]...).CombinedOutput()
devLog("run command time: ", time.Now().Sub(commandStartTime))
return sanitisedCommandOutput(cmdOut, err) return sanitisedCommandOutput(cmdOut, err)
} }