Permalink
Browse files

sync stdout to get puts on one line

  • Loading branch information...
1 parent 4114e87 commit 905e5c271c58b8db2d52a6292d4a49d197511d1c @tompesman committed Sep 26, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/push/daemon/logger.rb
@@ -3,7 +3,12 @@ module Daemon
class Logger
def initialize(options)
@options = options
- open_log unless @options[:foreground]
+
+ if @options[:foreground]
+ STDOUT.sync = true
+ else
+ open_log
+ end
end
def info(msg)

0 comments on commit 905e5c2

Please sign in to comment.