Skip to content

Commit

Permalink
Use logging.info
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tkamppi committed Sep 21, 2019
1 parent a17a841 commit 5d35560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slash_command/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5d35560

Please sign in to comment.