Skip to content

Commit 9a8d2de

Browse files
committed
Avoid duplicating HWIA and reduce object allocations
1 parent 351e726 commit 9a8d2de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

actionpack/lib/action_controller/log_subscriber.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ def start_processing(event)
88
return unless logger.info?
99

1010
payload = event.payload
11-
params = payload[:params].except(*INTERNAL_PARAMS)
11+
params = {}
12+
payload[:params].each_pair do |k, v|
13+
params[k] = v unless INTERNAL_PARAMS.include?(k)
14+
end
1215
format = payload[:format]
1316
format = format.to_s.upcase if format.is_a?(Symbol)
1417
format = "*/*" if format.nil?

0 commit comments

Comments
 (0)