1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

Use log_error instead of log_verbose when executed command fails

This commit is contained in:
Zdenek Kabelac 2011-09-19 14:54:23 +00:00
parent 13e3c25ade
commit 4eeff46bf2
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.89 -
==================================
Use log_error instead of log_verbose when executed command fails.
Add support for non /dev device paths into fsadm script.
Support different PATH setting for fsadm script testing.
Surround all executed commands with quotes in fsadm script.

View File

@ -96,7 +96,7 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
if (WEXITSTATUS(status)) {
if (rstatus) {
*rstatus = WEXITSTATUS(status);
log_verbose("%s failed: %u", argv[0], *rstatus);
log_error("%s failed: %u", argv[0], *rstatus);
} else
log_error("%s failed: %u", argv[0], WEXITSTATUS(status));
return 0;