commit cd5e8836bfad0c1ee82b56261fd3d2cb5fd5677b
parent 9c79d3bb94a790633a1342c2ccaa10bfc406fc29
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Sat, 3 Apr 2010 10:06:09 -0700
strip redundant newlines from log messages
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/logger.rb b/lib/sup/logger.rb
@@ -54,7 +54,7 @@ private
when "error"; "ERROR: "
else ""
end
- "[#{time.to_s}] #{prefix}#{msg}\n"
+ "[#{time.to_s}] #{prefix}#{msg.rstrip}\n"
end
## actually distribute the message