Skip to content
Snippets Groups Projects
Commit 4b970cbb authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Provide default preventing slack messages being sent

parent c6ba31e5
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,9 @@ class SlackAdapter(AdapterBase): ...@@ -102,6 +102,9 @@ class SlackAdapter(AdapterBase):
return str(user) return str(user)
def send_message(self, message, user, **kwargs): def send_message(self, message, user, **kwargs):
if not self.destination:
return
message = ' '.join([self.slack_id(user), message]) message = ' '.join([self.slack_id(user), message])
data = { data = {
"room": "CBQUCH458", "room": "CBQUCH458",
......
...@@ -106,6 +106,8 @@ else: ...@@ -106,6 +106,8 @@ else:
} }
SLACK_DESTINATION = env.get('SLACK_DESTINATION', None)
# Logging # Logging
if 'LOG_DIR' in env: if 'LOG_DIR' in env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment