summaryrefslogtreecommitdiff
path: root/lib/activate
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-09 11:08:47 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-10 01:11:52 +0100
commit7342ab06fcce5f386e1fd58fa9e82352d570398e (patch)
treedc14653bfb1a4354d3e90dcf66d48ee17926f52f /lib/activate
parent5f7a7af7f201fea454bc4200bc76c4c75ef95463 (diff)
downloadlvm2-7342ab06fcce5f386e1fd58fa9e82352d570398e.tar.gz
debug: change sys_error to sys_debug
These messages do not cause command error - so changing logging level to just 'sys_debug' (so visible only with -vvvv)
Diffstat (limited to 'lib/activate')
-rw-r--r--lib/activate/fs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/activate/fs.c b/lib/activate/fs.c
index 2e8098ddf..60ced8fb5 100644
--- a/lib/activate/fs.c
+++ b/lib/activate/fs.c
@@ -93,7 +93,7 @@ static void _rm_blks(const char *dir)
DIR *d;
if (!(d = opendir(dir))) {
- log_sys_error("opendir", dir);
+ log_sys_debug("opendir", dir);
return;
}
@@ -104,7 +104,7 @@ static void _rm_blks(const char *dir)
continue;
if (dm_snprintf(path, sizeof(path), "%s/%s", dir, name) == -1) {
- log_error("Couldn't create path for %s", name);
+ log_debug("Couldn't create path for %s.", name);
continue;
}
@@ -113,12 +113,12 @@ static void _rm_blks(const char *dir)
continue;
log_very_verbose("Removing %s", path);
if (unlink(path) < 0)
- log_sys_error("unlink", path);
+ log_sys_debug("unlink", path);
}
}
if (closedir(d))
- log_sys_error("closedir", dir);
+ log_sys_debug("closedir", dir);
}
static int _mk_link(const char *dev_dir, const char *vg_name,
@@ -169,7 +169,7 @@ static int _mk_link(const char *dev_dir, const char *vg_name,
log_very_verbose("Removing %s", lvm1_group_path);
if (unlink(lvm1_group_path) < 0)
- log_sys_error("unlink", lvm1_group_path);
+ log_sys_debug("unlink", lvm1_group_path);
}
}