1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Avoid extra array allocations

This commit is contained in:
Samuel Cochran 2018-11-29 09:14:24 +11:00
parent 0b2c49aa4d
commit acbc0e0467
No known key found for this signature in database
GPG key ID: 1A36ACA1BDECD23E

View file

@ -183,9 +183,9 @@ module ActionDispatch
message = []
message << " "
message << "#{exception.class} (#{exception.message}):"
message += exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
message.concat(exception.annoted_source_code) if exception.respond_to?(:annoted_source_code)
message << " "
message += trace
message.concat(trace)
log_array(logger, message)
end