main
Laurent 2 years ago
parent 5be8b228ba
commit 2f5c52e5c1
  1. 8
      subscriptions/views.py

@ -5,6 +5,11 @@ from .models import ASSNotification
from django.conf import settings from django.conf import settings
import json, jwt import json, jwt
import logging
import logging.config
logger = logging.getLogger("main")
def index(request): def index(request):
return HttpResponse("Hello, world. You're at the subs index.") return HttpResponse("Hello, world. You're at the subs index.")
@ -27,7 +32,8 @@ def app_store_webhook(request):
decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256'])
print('hell yeah!' + str(key))
logger.debug('test getLogger' + str(key))
notification = ASSNotification( notification = ASSNotification(
content=decodedPayload, content=decodedPayload,

Loading…
Cancel
Save