Skip to content

Commit b417ceb

Browse files
Update the logging level as this is supposed to be a warning (#34504)
* Update the logging level as this is supposed to be a warning * Update _connection_async.py to warning instead of error logging level
1 parent c05ff90 commit b417ceb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def _incoming_close(self, channel: int, frame: Tuple[Any, ...]) -> None:
516516
self._error = AMQPConnectionError(
517517
condition=frame[0][0], description=frame[0][1], info=frame[0][2]
518518
)
519-
_LOGGER.error(
519+
_LOGGER.warning(
520520
"Connection closed with error: %r", frame[0],
521521
extra=self._network_trace_params
522522
)

sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/aio/_connection_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ async def _incoming_close(self, channel: int, frame: Tuple[Any, ...]) -> None:
533533
self._error = AMQPConnectionError(
534534
condition=frame[0][0], description=frame[0][1], info=frame[0][2]
535535
)
536-
_LOGGER.error(
536+
_LOGGER.warning(
537537
"Connection closed with error: %r", frame[0],
538538
extra=self._network_trace_params
539539
)

0 commit comments

Comments
 (0)