diff options
author | Gareth du Plooy <gduplooy@gmail.com> | 2016-03-08 22:18:49 -0500 |
---|---|---|
committer | Gareth du Plooy <gduplooy@gmail.com> | 2016-03-08 22:59:27 -0500 |
commit | 2c5c1276a84692ba58f60c8ff5fdad744959b69a (patch) | |
tree | 19367685f3ebb6c875a4b683fb35c49075024e99 /actionpack/lib | |
parent | b165d73f2ccd421c9f3518ce9bf5bcb322440cb7 (diff) | |
download | rails-2c5c1276a84692ba58f60c8ff5fdad744959b69a.tar.gz rails-2c5c1276a84692ba58f60c8ff5fdad744959b69a.tar.bz2 rails-2c5c1276a84692ba58f60c8ff5fdad744959b69a.zip |
Pass headers through to payload for logging.
Make request headers available in the event payload so that it is available to attached ActionController::LogSubscribers.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/instrumentation.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/instrumentation.rb b/actionpack/lib/action_controller/metal/instrumentation.rb index bf74b39ac4..885ea3fefd 100644 --- a/actionpack/lib/action_controller/metal/instrumentation.rb +++ b/actionpack/lib/action_controller/metal/instrumentation.rb @@ -19,6 +19,7 @@ module ActionController :controller => self.class.name, :action => self.action_name, :params => request.filtered_parameters, + :headers => request.headers, :format => request.format.ref, :method => request.request_method, :path => request.fullpath |