Permalink
Browse files

open log in append mode

  • Loading branch information...
1 parent ebaf887 commit 937f2e61f9945cab025549bd41c03a2f3b280feb @tompesman committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/push/daemon/logger.rb
View
2 lib/push/daemon/logger.rb
@@ -43,7 +43,7 @@ def log(where, msg, prefix = nil)
end
def open_log
- log_file = File.open(File.join(Rails.root, 'log', 'push.log'), 'w')
+ log_file = File.open(File.join(Rails.root, 'log', 'push.log'), 'a')
log_file.sync = true
@logger = ActiveSupport::BufferedLogger.new(log_file, Rails.logger.level)
@logger.auto_flushing = Rails.logger.respond_to?(:auto_flushing) ? Rails.logger.auto_flushing : true

0 comments on commit 937f2e6

Please sign in to comment.