Strip newlines so we dont add spaces

bug/bundler_fix
Meatballs 2015-06-21 19:13:55 +01:00
parent d267efbbbe
commit 48102aa6eb
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Sinks
class TimestampFlatfile < Flatfile
def log(sev, src, level, msg, from) # :nodoc:
cleaned = msg.gsub(/\x1b\[[0-9;]*[mG]/,'')
cleaned = msg.chop.gsub(/\x1b\[[0-9;]*[mG]/,'')
fd.write("[#{get_current_timestamp}] #{cleaned}\n")
fd.flush
end