rails/rails — Issue #3697: Removing newlines from logging statement in Rails::Rack::Logger
Author: ohwillie
Created: 2011-11-19 17:21:56+00:00
State: open

Short of opening the class up and overriding the ```call_app``` method or intercepting the message on the logger side, there doesn't seem to be a way to remove the usually prettifying initial newlines from ```Rails::Rack::Logger```'s info logging statement (https://github.com/rails/rails/blob/master/railties/lib/rails/rack/logger.rb#L25). This orphans the log info from whatever metadata it might be paired with at the beginning of the log line. Could those newline characters be removed? Thanks.