Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
[FormattedLogger] do not escape whitespace like tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Sep 2, 2011
1 parent 5306f55 commit 7d3a8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cinch/logger/formatted_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def log(messages, kind = :generic)
next if msg.empty?
message = Time.now.strftime("[%Y/%m/%d %H:%M:%S.%L] ")

msg.gsub!(/[^[:print:]]/) do |m|
msg.gsub!(/[^[:print:][:space:]]/) do |m|
colorize(m.inspect[1..-2], :bg_white, :black)
end

Expand Down

0 comments on commit 7d3a8fd

Please sign in to comment.