passt: make --quiet set the log level to warning
Based on the man page and help output --quiet hides informational messages. This means that warnings should still be logged. This was discussed in[1]. [1] https://archives.passt.top/passt-dev/20240216114304.7234a83f@elisabeth/T/#m42652824644973674e84baf9e0bf1d0e88104450 Signed-off-by: Paul Holzinger <pholzing@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
e5e6f29459
commit
b08716551a
1 changed files with 1 additions and 1 deletions
2
passt.c
2
passt.c
|
@ -326,7 +326,7 @@ int main(int argc, char **argv)
|
|||
if (c.debug)
|
||||
__setlogmask(LOG_UPTO(LOG_DEBUG));
|
||||
else if (c.quiet)
|
||||
__setlogmask(LOG_UPTO(LOG_ERR));
|
||||
__setlogmask(LOG_UPTO(LOG_WARNING));
|
||||
else
|
||||
__setlogmask(LOG_UPTO(LOG_INFO));
|
||||
|
||||
|
|
Loading…
Reference in a new issue