diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/howto-publish-subscribe.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/howto-publish-subscribe.md index c4fc946f8..0bad5fcc7 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/howto-publish-subscribe.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/howto-publish-subscribe.md @@ -282,9 +282,9 @@ 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) ``` Navigate to the directory containing the above code, then run the following command to launch a Dapr sidecar and run the application: