feat: print http stat with color

This commit is contained in:
debugtalk
2022-05-05 14:29:33 +08:00
parent aa926d53cf
commit 95ab8b1851
6 changed files with 106 additions and 18 deletions
+1 -3
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