Add Raven user context
This commit is contained in:
parent
c9f6b0328e
commit
78cd461873
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ class ApplicationController < ActionController::Base
|
|||
private
|
||||
|
||||
def set_raven_context
|
||||
Raven.user_context id: current_user.id if user_signed_in?
|
||||
Raven.extra_context params: params.to_unsafe_h, url: request.url
|
||||
end
|
||||
|
||||
|
|
Reference in a new issue