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:
parent
0b2c49aa4d
commit
acbc0e0467
1 changed files with 2 additions and 2 deletions
|
@ -183,9 +183,9 @@ module ActionDispatch
|
||||||
message = []
|
message = []
|
||||||
message << " "
|
message << " "
|
||||||
message << "#{exception.class} (#{exception.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 << " "
|
||||||
message += trace
|
message.concat(trace)
|
||||||
|
|
||||||
log_array(logger, message)
|
log_array(logger, message)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue