mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Moving to production APNS.
This commit is contained in:
parent
7a9ceb8199
commit
28fa6edb98
2 changed files with 8 additions and 3 deletions
|
@ -225,9 +225,9 @@ class MUserFeedNotification(mongo.Document):
|
|||
def send_ios(self, story, user, usersub):
|
||||
if not self.is_ios: return
|
||||
|
||||
apns = APNs(use_sandbox=True,
|
||||
cert_file='/srv/newsblur/config/certificates/aps_development.pem',
|
||||
key_file='/srv/newsblur/config/certificates/aps_development.pem',
|
||||
apns = APNs(use_sandbox=False,
|
||||
cert_file='/srv/newsblur/config/certificates/aps.pem',
|
||||
key_file='/srv/newsblur/config/certificates/aps.pem',
|
||||
enhanced=settings.DEBUG)
|
||||
|
||||
tokens = MUserNotificationTokens.get_tokens_for_user(self.user_id)
|
||||
|
|
|
@ -158,6 +158,11 @@ LOGGING = {
|
|||
'class': 'logging.StreamHandler',
|
||||
'formatter': 'verbose'
|
||||
},
|
||||
'vendor.apns':{
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.StreamHandler',
|
||||
'formatter': 'verbose'
|
||||
},
|
||||
'log_file':{
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
|
|
Loading…
Add table
Reference in a new issue