Skip to content

Commit 2b0b0c6

Browse files
committed
cleanup: verbosity of interceptor logs
1 parent 7e41768 commit 2b0b0c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interceptor/pkg/interceptor/pdinterceptor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ func (pdi *PagerDutyInterceptor) executeInterceptor(r *http.Request) ([]byte, er
8989
if err := json.Unmarshal(body.Bytes(), &ireq); err != nil {
9090
return nil, badRequest(fmt.Errorf("failed to parse body as InterceptorRequest: %w", err))
9191
}
92-
pdi.Logger.Infof("Interceptor Request is: %+v", ireq)
92+
pdi.Logger.Debugf("Interceptor request body is: %s", ireq.Body)
9393

9494
iresp := pdi.Process(ctx, &ireq)
95-
pdi.Logger.Infof("Interceptor response is: %+v", iresp)
95+
pdi.Logger.Debugf("Interceptor response is: %+v", iresp)
9696
respBytes, err := json.Marshal(iresp)
9797
if err != nil {
9898
return nil, internal(err)

0 commit comments

Comments
 (0)