app/controllers/backoffice/application_controller.rb
def append_info_to_payload(payload)
      super
      payload[:referrer] = request&.referrer
      payload[:session_id] = request&.session&.id
      payload[:user_agent] = request&.user_agent
    end
# This is required to get request attributes in to the production logs.
# See the various lograge configurations in `production.rb`.
This is required to get request attributes in to the production logs.
See the various lograge configurations in `production.rb`.
This is required to get request attributes in to the production logs . See the various lograge configurations in ` production . rb ` .
def append_info_to_payload(payload)
      super
      payload[:referrer] = request&.referrer
      payload[:session_id] = request&.session&.id
      payload[:user_agent] = request&.user_agent
    end
def append_info_to_payload ( payload ) super payload [ :referrer ] = request &. referrer payload [ :session_id ] = request &. session &. id payload [ :user_agent ] = request &. user_agent end
This is required to get request attributes in to the production logs.
This is required to get request attributes in to the production logs .
payload