don't output Docker performance issues when user wants JSON
parent
90300a4c52
commit
8d7a636bfe
|
@ -135,7 +135,7 @@ func runCmd(cmd *exec.Cmd, warnSlow ...bool) (*RunResult, error) {
|
|||
start := time.Now()
|
||||
err := cmd.Run()
|
||||
elapsed := time.Since(start)
|
||||
if warn {
|
||||
if warn && !out.JSON {
|
||||
if elapsed > warnTime {
|
||||
warnLock.Lock()
|
||||
_, ok := alreadyWarnedCmds[rr.Command()]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue