mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use print when displaying info
Use error or warn only when we really have some problem in the code.
This commit is contained in:
parent
54184f92ac
commit
d1d50d4023
@ -1629,7 +1629,7 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd,
|
||||
lv_check_transient(lv); /* TODO check this in lib for all commands? */
|
||||
|
||||
if (!(lv->status & PARTIAL_LV)) {
|
||||
log_warn("%s is consistent. Nothing to repair.", lv->name);
|
||||
log_print_unless_silent("%s is consistent. Nothing to repair.", lv->name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -1640,15 +1640,15 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd,
|
||||
return_0;
|
||||
|
||||
if (failed_mimages)
|
||||
log_error("Mirror status: %d of %d images failed.",
|
||||
failed_mimages, original_mimages);
|
||||
log_print_unless_silent("Mirror status: %d of %d images failed.",
|
||||
failed_mimages, original_mimages);
|
||||
|
||||
/*
|
||||
* Count the failed log devices
|
||||
*/
|
||||
if (failed_logs)
|
||||
log_error("Mirror log status: %d of %d images failed.",
|
||||
failed_logs, original_logs);
|
||||
log_print_unless_silent("Mirror log status: %d of %d images failed.",
|
||||
failed_logs, original_logs);
|
||||
|
||||
/*
|
||||
* Find out our policies
|
||||
|
Loading…
Reference in New Issue
Block a user