Skip to content

Commit 99a90e4

Browse files
authored
Merge pull request #415 from metricq/reduce-reconnect-warning-verbosity
reduce verbosity of reconnect warnings
2 parents 52639b0 + 607407c commit 99a90e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aio_pika/robust_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ async def connect(self, timeout: TimeoutType = None, **kwargs):
141141
await self.__cleanup_connection(e)
142142

143143
log.warning(
144-
'Connection attempt to "%s" failed. '
144+
'Connection attempt to "%s" failed: %s. '
145145
"Reconnecting after %r seconds.",
146146
self,
147+
e,
147148
self.reconnect_interval,
148-
exc_info=True,
149149
)
150150
except asyncio.CancelledError as e:
151151
await self.__cleanup_connection(e)

0 commit comments

Comments
 (0)