summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-06 17:03:27 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-07 09:12:51 +0200
commitec132cfb9510149b9138c30d02d9597ff14bccea (patch)
tree0a2545725b02a898f9269cde977736de55e43497
parent5698aa66d21f6c699a7170ea21c8d3ad0dc5a616 (diff)
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.
-rw-r--r--src/utils/probe.py1
1 files changed, 0 insertions, 1 deletions
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()