File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ async def _reconnect_async(self): # pylint: disable=too-many-statements
159
159
if str (shutdown ).startswith ("Unable to open authentication session" ) and self .auto_reconnect :
160
160
log .info ("AsyncReceiver couldn't authenticate. Attempting reconnect." )
161
161
return False
162
- log .info ("AsyncReceiver connection error (%r). Shutting down." , e )
163
- error = EventHubError (str (shutdown ), shutdown )
162
+ log .info ("AsyncReceiver connection error (%r). Shutting down." , shutdown )
163
+ error = EventHubError (str (shutdown ))
164
164
await self .close_async (exception = error )
165
165
raise error
166
166
except Exception as e :
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ async def _reconnect_async(self):
144
144
if str (shutdown ).startswith ("Unable to open authentication session" ) and self .auto_reconnect :
145
145
log .info ("AsyncSender couldn't authenticate. Attempting reconnect." )
146
146
return False
147
- log .info ("AsyncSender connection error (%r). Shutting down." , e )
148
- error = EventHubError (str (shutdown ), shutdown )
147
+ log .info ("AsyncSender connection error (%r). Shutting down." , shutdown )
148
+ error = EventHubError (str (shutdown ))
149
149
await self .close_async (exception = error )
150
150
raise error
151
151
except Exception as e :
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ def _reconnect(self): # pylint: disable=too-many-statements
154
154
if str (shutdown ).startswith ("Unable to open authentication session" ) and self .auto_reconnect :
155
155
log .info ("Receiver couldn't authenticate. Attempting reconnect." )
156
156
return False
157
- log .info ("Receiver connection error (%r). Shutting down." , e )
157
+ log .info ("Receiver connection error (%r). Shutting down." , shutdown )
158
158
error = EventHubError (str (shutdown ))
159
159
self .close (exception = error )
160
160
raise error
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def _reconnect(self):
137
137
if str (shutdown ).startswith ("Unable to open authentication session" ) and self .auto_reconnect :
138
138
log .info ("Sender couldn't authenticate. Attempting reconnect." )
139
139
return False
140
- log .info ("Sender connection error (%r). Shutting down." , e )
140
+ log .info ("Sender connection error (%r). Shutting down." , shutdown )
141
141
error = EventHubError (str (shutdown ))
142
142
self .close (exception = error )
143
143
raise error
You can’t perform that action at this time.
0 commit comments