Skip to content

Commit fcd2e3f

Browse files
committed
logger.warn -> logger.warning
Signed-off-by: Lance Drane <dranelt@ornl.gov>
1 parent a74b63d commit fcd2e3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/intersect_sdk/_internal/control_plane/brokers/amqp_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _on_connection_closed(self, connection: pika.SelectConnection, reason: Excep
254254
if self._should_disconnect:
255255
connection.ioloop.stop()
256256
else:
257-
logger.warn('Connection closed, reopening in 5 seconds: %s', reason)
257+
logger.warning('Connection closed, reopening in 5 seconds: %s', reason)
258258
connection.ioloop.call_later(5, connection.ioloop.stop)
259259
self._channel_flags.unset_all()
260260
self._channel_out = None

src/intersect_sdk/_internal/data_plane/data_plane_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, hierarchy: HierarchyConfig, data_configs: DataStoreConfigMap)
3232

3333
# warn users about missing data plane
3434
if not self._minio_providers:
35-
logger.warn('WARNING: This service cannot support any MINIO instances')
35+
logger.warning('WARNING: This service cannot support any MINIO instances')
3636

3737
def incoming_message_data_handler(self, message: UserspaceMessage | EventMessage) -> bytes:
3838
"""Get data from the request data provider.

0 commit comments

Comments
 (0)