diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-08-27 12:40:02 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-08-27 12:44:13 +0200 |
commit | 3d47b5069a5c6955390ca1bb85a7b194c73049d2 (patch) | |
tree | 2fe6ac1a3f9d62e3fe5aef60b99297a758309f8c /src/live | |
parent | 4b62b80be7a6314ca954539b7ae2a0eac1ad59bd (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/live')
-rw-r--r-- | src/live/ogOperations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 978410f..a5e6045 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -235,7 +235,7 @@ class OgLiveOperations: if os.access(f'/opt/opengnsys/images', os.R_OK) == False: raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions') - logging.warn(f'Checksum validation is *NOT* available with UNICAST-DIRECT!') + logging.warning(f'Checksum validation is *NOT* available with UNICAST-DIRECT!') image_path = f'/opt/opengnsys/images/{name}.img' self._restore_image(image_path, devpath) @@ -348,7 +348,7 @@ class OgLiveOperations: raise OgError(f'Error when running "shell run" subprocess: {e}') from e if ogRest.proc.returncode != 0: - logging.warn('Non zero exit code when running: %s', ' '.join(cmds)) + logging.warning('Non zero exit code when running: %s', ' '.join(cmds)) else: logging.info('Shell run command OK') |