From 5d35560cc9b250f8f19a92a00e74eae6bbc52eb8 Mon Sep 17 00:00:00 2001 From: tkamppi Date: Sat, 21 Sep 2019 14:20:17 +0200 Subject: [PATCH] Use logging.info Changed remaining print statements to logging.info. In practice this has no effect in Cloud Functions but now everything is under logging instead of a split. --- src/slash_command/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slash_command/main.py b/src/slash_command/main.py index 0deeb85..72e1adf 100644 --- a/src/slash_command/main.py +++ b/src/slash_command/main.py @@ -112,8 +112,8 @@ def trigger_dialog(request): if data.get("ok") == False: raise SlackError(data.get("error")) - print(f"Dialog trigger status_code from slack: {r.status_code}") - print(f"Dialog trigger response body from slack: {r.text}") + logging.info(f"Dialog trigger status_code from slack: {r.status_code}") + logging.info(f"Dialog trigger response body from slack: {r.text}") def slack_header_validation(signature, req_timestamp):