Skip to content

Commit 24f05a6

Browse files
committed
Fix
1 parent db7cdc6 commit 24f05a6

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

slack_sdk/socket_mode/aiohttp/__init__.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)