Skip to content

Commit

Permalink
::Rack::BodyProxy needs a block
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored Jan 25, 2022
1 parent 6804ed6 commit d914b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lograge/rails_ext/rack/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def call_app(*args)
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)]
[status, headers, ::Rack::BodyProxy.new(body) {}] # rubocop:disable Lint/EmptyBlock
ensure
ActiveSupport::LogSubscriber.flush_all!
end
Expand Down

0 comments on commit d914b1c

Please sign in to comment.