Skip to content

Commit

Permalink
logger.warn -> logger.warning
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Drane <dranelt@ornl.gov>
  • Loading branch information
Lance-Drane committed Sep 30, 2024
1 parent a74b63d commit fcd2e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _on_connection_closed(self, connection: pika.SelectConnection, reason: Excep
if self._should_disconnect:
connection.ioloop.stop()
else:
logger.warn('Connection closed, reopening in 5 seconds: %s', reason)
logger.warning('Connection closed, reopening in 5 seconds: %s', reason)
connection.ioloop.call_later(5, connection.ioloop.stop)
self._channel_flags.unset_all()
self._channel_out = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, hierarchy: HierarchyConfig, data_configs: DataStoreConfigMap)

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

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

0 comments on commit fcd2e3f

Please sign in to comment.