Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

open log in append mode

  • Loading branch information...
commit 937f2e61f9945cab025549bd41c03a2f3b280feb 1 parent ebaf887
Tom Pesman authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/push/daemon/logger.rb
2  lib/push/daemon/logger.rb
@@ -43,7 +43,7 @@ def log(where, msg, prefix = nil)
43 43 end
44 44
45 45 def open_log
46   - log_file = File.open(File.join(Rails.root, 'log', 'push.log'), 'w')
  46 + log_file = File.open(File.join(Rails.root, 'log', 'push.log'), 'a')
47 47 log_file.sync = true
48 48 @logger = ActiveSupport::BufferedLogger.new(log_file, Rails.logger.level)
49 49 @logger.auto_flushing = Rails.logger.respond_to?(:auto_flushing) ? Rails.logger.auto_flushing : true

0 comments on commit 937f2e6

Please sign in to comment.
Something went wrong with that request. Please try again.