Skip to content

Commit 80f922e

Browse files
committed
aligning payload
1 parent 4130acd commit 80f922e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mns_subscription/src/mns_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import requests
22
import os
33
import uuid
4+
import logging
45
import json
56
from authentication import AppRestrictedAuth
67
from models.errors import UnhandledResponseError
@@ -13,6 +14,8 @@ class MnsService:
1314
def __init__(self, authenticator: AppRestrictedAuth):
1415
self.authenticator = authenticator
1516

17+
logging.info(f"Using SQS ARN for subscription: {SQS_ARN}")
18+
1619
def subscribe_notification(self) -> dict | None:
1720
access_token = self.authenticator.get_access_token()
1821
request_headers = {
@@ -24,7 +27,7 @@ def subscribe_notification(self) -> dict | None:
2427
"resourceType": "Subscription",
2528
"status": "requested",
2629
"reason": "Subscribe SQS to MNS test-signal",
27-
"criteria": "eventType=mns-test-signal-1",
30+
"criteria": "eventType=mns-test-signal-2",
2831
"channel": {
2932
"type": "message",
3033
"endpoint": SQS_ARN,

0 commit comments

Comments
 (0)