summaryrefslogtreecommitdiffstats
path: root/src/utils/tiptorrent.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-08-27 12:40:02 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-08-27 12:44:13 +0200
commit3d47b5069a5c6955390ca1bb85a7b194c73049d2 (patch)
tree2fe6ac1a3f9d62e3fe5aef60b99297a758309f8c /src/utils/tiptorrent.py
parent4b62b80be7a6314ca954539b7ae2a0eac1ad59bd (diff)
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.
Diffstat (limited to 'src/utils/tiptorrent.py')
-rw-r--r--src/utils/tiptorrent.py4
1 files changed, 2 insertions, 2 deletions
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