Skip to content

Commit

Permalink
Fixes #38122 - Use Rails for JwtToken logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren authored and ekohl committed Jan 6, 2025
1 parent bc2dbbf commit fb512ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/jwt_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def decoded_payload
@decoded_payload = JWT.decode(token, nil, false).first

unless @decoded_payload.is_a?(Hash)
logger.error "Invalid decoded JWT format."
logger.debug "Received payload: #{@decoded_payload}"
Rails.logger.error "Invalid decoded JWT format."
Rails.logger.debug "Received payload: #{@decoded_payload}"
@decoded_payload = nil
end
@decoded_payload
Expand Down

0 comments on commit fb512ee

Please sign in to comment.