We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f85156 commit 5a1f5f5Copy full SHA for 5a1f5f5
ssl-check-to-slack.py
@@ -50,9 +50,9 @@ def split_matcher(matcher):
50
# Slack web hook example
51
# https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXXXX
52
def post_slack_message(hook_urls, message):
53
- logger.info(f'Posting the following message:\n{message}')
54
headers = {'Content-type': 'application/json'}
55
for hook_url in hook_urls:
+ logger.info(f'Sending the following message to {len(hook_url[:-10])*"#"+hook_url[-10:]}:\n {json.dumps(message)}')
56
connection = http.client.HTTPSConnection('hooks.slack.com')
57
connection.request('POST',
58
hook_url.replace('https://hooks.slack.com', ''),
0 commit comments