Skip to content

Commit

Permalink
fix: panic in recovery (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl authored Nov 23, 2023
1 parent 3735f1c commit c25ddff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions selfservice/strategy/code/strategy_recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ func (s *Strategy) retryRecoveryFlow(w http.ResponseWriter, r *http.Request, ft
o(&retryOptions)
}

s.deps.Logger().
WithRequest(r).
WithField("message", retryOptions.message).
WithError(retryOptions.err).
Debug("A recovery flow is being retried because a validation error occurred.")
logger := s.deps.Logger().WithRequest(r).WithError(retryOptions.err)
if retryOptions.message != nil {
logger = logger.WithField("message", retryOptions.message)
}
logger.Debug("A recovery flow is being retried because a validation error occurred.")

ctx := r.Context()
config := s.deps.Config()
Expand Down

0 comments on commit c25ddff

Please sign in to comment.