From b0d03ce588dd2f9e32be33604211d77e7f83217f Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 7 May 2024 12:03:14 +0200 Subject: utils:fs: fix logging statement in get_filesystem_type Call the error() logging function from the logging object instead of the non existent log variable previously referenced. --- src/utils/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/fs.py') diff --git a/src/utils/fs.py b/src/utils/fs.py index 1fd13f1..184b47a 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -228,7 +228,7 @@ def get_filesystem_type(partdev): cmd = shlex.split(f'blkid -o value -s TYPE {partdev}') proc = subprocess.run(cmd, stdout=PIPE, encoding='utf-8') if proc.returncode != 0: - log.error(f'Error getting filesystem from {partdev}') + logging.error(f'Error getting filesystem from {partdev}') return "unknown" return proc.stdout.strip() -- cgit v1.2.3-18-g5258