From 9c02133098ee65574134fe1781cb35ade6d7ecfb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 19 Feb 2012 10:52:54 +0000 Subject: [PATCH] Don't double up newlines in the log --- config/initializers/buffered_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/buffered_logger.rb b/config/initializers/buffered_logger.rb index 03d88f69c..b75e74ec6 100644 --- a/config/initializers/buffered_logger.rb +++ b/config/initializers/buffered_logger.rb @@ -7,7 +7,7 @@ module ActiveSupport return if @level > severity message = (message || (block && block.call) || progname).to_s time = Time.now - message = "[%s.%06d #%d] %s\n" % [time.strftime("%Y-%m-%d %H:%M:%S"), time.usec, $$, message.sub(/^\n+/, "")] + message = "[%s.%06d #%d] %s" % [time.strftime("%Y-%m-%d %H:%M:%S"), time.usec, $$, message.sub(/^\n+/, "")] old_add(severity, message) end end -- 2.39.5