Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added exception logging for connection failures

  • Loading branch information...
commit a2bc9bb767eef0187f462ec7ea4985c3617078fc 1 parent 43810a7
@PRXci PRXci authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/apn_on_rails/app/models/apn/app.rb
View
9 lib/apn_on_rails/app/models/apn/app.rb
@@ -54,7 +54,8 @@ def self.send_notifications_for_cert(the_cert, app_id)
end
end
end
- rescue
+ rescue Exception => e
+ log_connection_exception(e)
end
# end
end
@@ -140,5 +141,11 @@ def self.process_devices_for_cert(the_cert)
end
end
end
+
+
+ protected
+ def log_connection_exception(ex)

I think this should be a class method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ puts ex.message
+ end
end
@mjankowski

I think this should be a class method?

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