Skip to content

Commit

Permalink
log message added
Browse files Browse the repository at this point in the history
  • Loading branch information
tompesman committed Sep 24, 2015
1 parent 02d1496 commit c8ef5e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pushr/daemon/apns_support/connection_apns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def check_for_error(notification)
if code.to_i == 8
Pushr::FeedbackApns.create(app: @configuration.app, device: notification.device, follow_up: 'delete',
failed_at: Time.now)
Pushr::Daemon.logger.info("[#{@name}] Invalid device (error 8), feedback sent, message delivery failed"\
" to #{notification.to_json}")
else
description = APN_ERRORS[code.to_i] || 'Unknown error. Possible push bug?'
error = Pushr::Daemon::DeliveryError.new(code, notification, description, 'APNS')
Expand Down

0 comments on commit c8ef5e0

Please sign in to comment.