From 3d47b5069a5c6955390ca1bb85a7b194c73049d2 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 27 Aug 2024 12:40:02 +0200 Subject: src: use logging.warning() logging.warn() is deprecated since 3.3. And use .error() instead when command is unsupported or client is busy, that should not ever happen. --- src/utils/tiptorrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/tiptorrent.py b/src/utils/tiptorrent.py index 1aa1a6a..4f177cd 100644 --- a/src/utils/tiptorrent.py +++ b/src/utils/tiptorrent.py @@ -94,8 +94,8 @@ def tip_check_csum(tip_addr, image_name): logging.info(f'Checksum is OK for {image_name}.img') else: ret = False - logging.warn(f'Checksum mismatch for {image_name}.img') - logging.warn(f'Server reports checksum {remote_csum} but local checksum is {cache_csum}') + logging.warning(f'Checksum mismatch for {image_name}.img') + logging.warning(f'Server reports checksum {remote_csum} but local checksum is {cache_csum}') return ret -- cgit v1.2.3-18-g5258