aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2018-03-13 09:11:56 +0100
committerTollef Fog Heen <tfheen@err.no>2018-03-13 09:11:56 +0100
commit787f8c019d68b10bed01dc2dc6240f8ef052c5f5 (patch)
tree05bba4b6d61bf872f0486e5a824bca323c84a38a /wee_slack.py
parentc2b67f978579e353ff02c59bcc879f47d8c7f0b4 (diff)
downloadwee-slack-787f8c019d68b10bed01dc2dc6240f8ef052c5f5.tar.gz
Avoid logging the entire slack token, just do the prefix
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7e29f8b..0e0ae71 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2132,8 +2132,8 @@ def handle_rtmstart(login_data, eventrouter):
metadata = pickle.loads(login_data["wee_slack_request_metadata"])
if not login_data["ok"]:
- w.prnt("", "ERROR: Failed connecting to Slack with token {}: {}"
- .format(metadata.token, login_data["error"]))
+ w.prnt("", "ERROR: Failed connecting to Slack with token starting with {}: {}"
+ .format(metadata.token[:15], login_data["error"]))
return
# Let's reuse a team if we have it already.