Changed python code for pub sub

This commit is contained in:
Amulya Varote 2021-12-03 08:39:43 -08:00 committed by Artur Souza
parent 9646d122e8
commit ed20d72e41
1 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ logging.basicConfig(level = logging.INFO)
@app.subscribe(pubsub_name='order_pub_sub', topic='orders')
def mytopic(event: v1.Event) -> None:
data = json.loads(event.Data())
logging.info('Subscriber received: ' + data)
logging.info('Subscriber received: ' + str(data))
app.run(60002)
app.run(6002)