diff --git a/api/router/router.go b/api/router/router.go index 733a2bf3..7e00565f 100644 --- a/api/router/router.go +++ b/api/router/router.go @@ -99,7 +99,8 @@ func (r *Router) catchPanicsFunc(c *gin.Context) { errors.New("internal server error"), http.StatusInternalServerError) - r.l.Errorw( + logger := logging.AddCorrelationIDToLogger(c, r.l) + logger.Errorw( "panic handler triggered while handling call", "endpoint", c.Request.RequestURI, "error", fmt.Sprint(rval),