From ec132cfb9510149b9138c30d02d9597ff14bccea Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 6 Jun 2024 17:03:27 +0200 Subject: utils: remove bogus cache not found error after refresh command Remove log message "Cannot find device path to cache" spamming logs during operations such as refresh in clients without CACHE partition. --- src/utils/probe.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/probe.py b/src/utils/probe.py index b2ed5de..6919821 100644 --- a/src/utils/probe.py +++ b/src/utils/probe.py @@ -142,7 +142,6 @@ def get_cache_dev_path(): proc_blkid = subprocess.run(['blkid', '-L', 'CACHE'], stdout=subprocess.PIPE) if proc_blkid.returncode != 0: - logging.error('Cannot find device path to cache') return '' return proc_blkid.stdout.decode().strip() -- cgit v1.2.3-18-g5258