From ed20d72e4134aa9ecc7bf95510a73e97b5f4f998 Mon Sep 17 00:00:00 2001 From: Amulya Varote Date: Fri, 3 Dec 2021 08:39:43 -0800 Subject: [PATCH] Changed python code for pub sub --- pub_sub/python/CheckoutService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pub_sub/python/CheckoutService.py b/pub_sub/python/CheckoutService.py index 2e797a17..a77a4d0d 100644 --- a/pub_sub/python/CheckoutService.py +++ b/pub_sub/python/CheckoutService.py @@ -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) \ No newline at end of file +app.run(6002) \ No newline at end of file