change: move step logs to session runner

This commit is contained in:
debugtalk
2022-03-31 12:20:40 +08:00
parent 5bd8ecdcfc
commit 03b8aa3518
7 changed files with 32 additions and 38 deletions
-4
View File
@@ -3,8 +3,6 @@ package hrp
import (
"fmt"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/hrp/internal/builtin"
)
@@ -93,8 +91,6 @@ func (s *StepAPIWithOptionalArgs) Struct() *TStep {
}
func (s *StepAPIWithOptionalArgs) Run(r *SessionRunner) (*StepResult, error) {
log.Info().Str("api", s.step.Name).Msg("run referenced api")
// extend request with referenced API
api, _ := s.step.API.(*API)
extendWithAPI(s.step, api)