mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 11:36:56 +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
|
transactionSuccess = false
|
||||||
|
|
||||||
if runner.hrpRunner.failfast {
|
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
|
break
|
||||||
}
|
}
|
||||||
log.Warn().Err(err).Msg("run step failed, continue next step")
|
log.Warn().Err(err).Msg("run step failed, continue next step")
|
||||||
|
|||||||
@@ -148,8 +148,7 @@ func (r *caseRunner) run() error {
|
|||||||
_, err := r.runStep(index)
|
_, err := r.runStep(index)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if r.hrpRunner.failfast {
|
if r.hrpRunner.failfast {
|
||||||
log.Error().Err(err).Msg("abort running due to failfast setting")
|
return errors.Wrap(err, "abort running due to failfast setting")
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
log.Warn().Err(err).Msg("run step failed, continue next step")
|
log.Warn().Err(err).Msg("run step failed, continue next step")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user