diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-12-11 17:11:38 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 04df66c2f6c8ec677b8ba34da5627fa91b9bebd7 (patch) | |
tree | c90e11708ef7c7df6d689871ce87a869795a81a2 /slack | |
parent | a6cc502c3febfe6e5e9a909ad7987453e5af2af6 (diff) | |
download | wee-slack-04df66c2f6c8ec677b8ba34da5627fa91b9bebd7.tar.gz |
Remove logging of some known unhandled websocket message types
Diffstat (limited to 'slack')
-rw-r--r-- | slack/slack_workspace.py | 8 |
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": |