lib/rest-ftp-daemon/logger.rb in rest-ftp-daemon-0.222.0 vs lib/rest-ftp-daemon/logger.rb in rest-ftp-daemon-0.230.0

- old
+ new

@@ -20,13 +20,13 @@ else output = [] end - # Prepend plain message to output - output.unshift (prefix1 + message.strip) + #output.unshift (prefix1 + message.strip) + output.unshift (prefix1 + message) # Send all this to logger add context[:level], output end @@ -41,10 +41,11 @@ protected def build_from_array prefix, lines lines.map do |value| - text = value.to_s.strip[0..LOG_TRIM_LINE] + #text = value.to_s.strip[0..LOG_TRIM_LINE] + text = value.to_s[0..LOG_TRIM_LINE] "#{prefix}#{text}" end end def build_from_hash prefix, lines