From 04df66c2f6c8ec677b8ba34da5627fa91b9bebd7 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 11 Dec 2023 17:11:38 +0100 Subject: Remove logging of some known unhandled websocket message types --- slack/slack_workspace.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'slack') 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": -- cgit