mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 03:09:41 +08:00
change: remove duplicate error logging
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user