diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-01 12:16:15 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-01 12:16:15 +0100 |
commit | 5110a8e05b760524108bbb387e55c998c0274870 (patch) | |
tree | 3eeb16b9c3d7d82073b2d555cd426ca0f3fc2202 /actionpack/lib | |
parent | aea7e8c2f359d4e60a2c3179486f0cca3001b13f (diff) | |
download | rails-5110a8e05b760524108bbb387e55c998c0274870.tar.gz rails-5110a8e05b760524108bbb387e55c998c0274870.tar.bz2 rails-5110a8e05b760524108bbb387e55c998c0274870.zip |
Remove the logging of the Session ID when the session store is CookieStore [DHH]
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 380f6bbf7a..b00cfda042 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1226,7 +1226,11 @@ module ActionController #:nodoc: def log_processing if logger && logger.info? logger.info "\n\nProcessing #{self.class.name}\##{action_name} (for #{request_origin}) [#{request.method.to_s.upcase}]" - logger.info " Session ID: #{@_session.session_id}" if @_session and @_session.respond_to?(:session_id) + + if @_session && @_session.respond_to?(:session_id) && !@_session.dbman.is_a?(CGI::Session::CookieStore) + logger.info " Session ID: #{@_session.session_id}" + end + logger.info " Parameters: #{respond_to?(:filter_parameters) ? filter_parameters(params).inspect : params.inspect}" end end |