feat: print http stat with color

This commit is contained in:
debugtalk
2022-05-05 14:24:48 +08:00
parent 9f5736260c
commit 0bd8cf39ea
6 changed files with 106 additions and 18 deletions

View File

@@ -350,9 +350,7 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
if r.HTTPStatOn() {
httpStat.Finish()
stepResult.HttpStat = httpStat.Durations()
log.Info().
Interface("httpstat(ms)", httpStat.Durations()).
Msg("HTTP latency statistics")
httpStat.Print()
}
// new response object