File tree Expand file tree Collapse file tree
slack_sdk/socket_mode/aiohttp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,20 +274,18 @@ async def receive_messages(self) -> None:
274274 f"session: { session_id } )"
275275 )
276276
277- counter_for_logging += 1
278- # The logging here is for detailed trouble shooting of potential issues in this client.
279- # If you don't see this log for a while, it can mean that
280- # this receive_messages execution is no longer working for some reason.
281- if (
282- self .trace_enabled
283- and counter_for_logging >= logging_interval
284- ):
285- counter_for_logging = 0
286- log_message = (
287- "#receive_messages method has been working without any issues "
288- f"(session: { session_id } , logging interval: { logging_interval } )"
289- )
290- self .logger .debug (log_message )
277+ if self .trace_enabled :
278+ # The logging here is for detailed trouble shooting of potential issues in this client.
279+ # If you don't see this log for a while, it can mean that
280+ # this receive_messages execution is no longer working for some reason.
281+ counter_for_logging += 1
282+ if counter_for_logging >= logging_interval :
283+ counter_for_logging = 0
284+ log_message = (
285+ "#receive_messages method has been working without any issues "
286+ f"(session: { session_id } , logging interval: { logging_interval } )"
287+ )
288+ self .logger .debug (log_message )
291289
292290 if message .type == WSMsgType .TEXT :
293291 message_data = message .data
You can’t perform that action at this time.
0 commit comments