Merge branch 'fix/add_wings_log' into 'master'

feat: 新增日志

See merge request iesqa/httprunner!151
This commit is contained in:
李隆
2025-08-12 02:40:37 +00:00

View File

@@ -412,6 +412,9 @@ func (w *WingsService) callWingsAPI(ctx context.Context, request WingsActionRequ
}
defer resp.Body.Close()
logID := resp.Header.Get("X-Tt-Logid")
log.Info().Str("step_text", request.StepText).Str("log_id", logID).Str("biz_id", request.BizId).Str("url", w.apiURL).Msg("call wings api")
// Read response body
responseBody, err := io.ReadAll(resp.Body)
if err != nil {