change: remove duplicate error logging

This commit is contained in:
debugtalk
2021-12-30 13:37:02 +08:00
parent be6b175f0c
commit 61760a450f
2 changed files with 2 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
transactionSuccess = false
if runner.hrpRunner.failfast {
log.Error().Err(err).Msg("abort running due to failfast setting")
log.Error().Msg("abort running due to failfast setting")
break
}
log.Warn().Err(err).Msg("run step failed, continue next step")

View File

@@ -148,8 +148,7 @@ func (r *caseRunner) run() error {
_, err := r.runStep(index)
if err != nil {
if r.hrpRunner.failfast {
log.Error().Err(err).Msg("abort running due to failfast setting")
return err
return errors.Wrap(err, "abort running due to failfast setting")
}
log.Warn().Err(err).Msg("run step failed, continue next step")
}