Skip to content

Commit

Permalink
Adding link to original logger
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Jan 24, 2022
1 parent 7ef493d commit db50192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lograge/rails_ext/rack/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def call_app(*args)
env = args.last
status, headers, body = @app.call(env)
# needs to have same return type as the Rails builtins being overridden, see https://github.com/roidrage/lograge/pull/333
# https://github.com/rails/rails/blob/be9d34b9bcb448b265114ebc28bef1a5b5e4c272/railties/lib/rails/rack/logger.rb#L37
[status, headers, ::Rack::BodyProxy.new(body)]
ensure
ActiveSupport::LogSubscriber.flush_all!
Expand Down

0 comments on commit db50192

Please sign in to comment.