diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-11 12:35:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-11 14:47:11 +1000 |
commit | f1eaeec9eeddc4c676524d6c9dd6f8737a70e6ac (patch) | |
tree | 9705fedc609aa109a8ace5fa9cbd430d6d375ebe /gitcommands.go | |
parent | d3abd9eab117e840303d56bff343d258e9448855 (diff) |
remove time logging
Diffstat (limited to 'gitcommands.go')
-rw-r--r-- | gitcommands.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gitcommands.go b/gitcommands.go index bb49f487c..59331ad53 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -120,13 +120,11 @@ func mergeGitStatusFiles(oldGitFiles, newGitFiles []GitFile) []GitFile { } func runDirectCommand(command string) (string, error) { - timeStart := time.Now() commandLog(command) cmdOut, err := exec. Command(state.Platform.shell, state.Platform.shellArg, command). CombinedOutput() - devLog("run direct command time for command: ", command, time.Now().Sub(timeStart)) return sanitisedCommandOutput(cmdOut, err) } @@ -258,12 +256,10 @@ func sanitisedCommandOutput(output []byte, err error) (string, error) { } func runCommand(command string) (string, error) { - commandStartTime := time.Now() commandLog(command) splitCmd := strings.Split(command, " ") devLog(splitCmd) cmdOut, err := exec.Command(splitCmd[0], splitCmd[1:]...).CombinedOutput() - devLog("run command time: ", time.Now().Sub(commandStartTime)) return sanitisedCommandOutput(cmdOut, err) } |