diff options
author | Paul Holzinger <pholzing@redhat.com> | 2024-02-22 18:17:39 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-02-27 14:08:00 +0100 |
commit | b08716551afd5a3c78d674226d71a4bbcc05b3de (patch) | |
tree | 27c72aff088cfa5060b9a42871ff90bf09839e59 /passt.c | |
parent | e5e6f2945977f551ec6958df7ab1892086551896 (diff) | |
download | passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar.gz passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar.bz2 passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar.lz passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar.xz passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.tar.zst passt-b08716551afd5a3c78d674226d71a4bbcc05b3de.zip |
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>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |