aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-12-11 17:11:38 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit04df66c2f6c8ec677b8ba34da5627fa91b9bebd7 (patch)
treec90e11708ef7c7df6d689871ce87a869795a81a2
parenta6cc502c3febfe6e5e9a909ad7987453e5af2af6 (diff)
downloadwee-slack-04df66c2f6c8ec677b8ba34da5627fa91b9bebd7.tar.gz
Remove logging of some known unhandled websocket message types
-rw-r--r--slack/slack_workspace.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 51551f0..69533d7 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -343,7 +343,13 @@ class SlackWorkspace:
log(LogLevel.DEBUG, DebugMessageType.WEBSOCKET_RECV, json.dumps(data))
try:
- if data["type"] == "hello":
+ if data["type"] in [
+ "hello",
+ "file_public",
+ "file_shared",
+ "file_deleted",
+ "dnd_updated_user",
+ ]:
return
elif data["type"] == "pref_change":
if data["name"] == "muted_channels":