public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 1/2] passt: make --quiet set the log level to warning
@ 2024-02-22 17:17 Paul Holzinger
  2024-02-22 17:17 ` [PATCH 2/2] conf: set the log level much earlier Paul Holzinger
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Paul Holzinger @ 2024-02-22 17:17 UTC (permalink / raw)
  To: passt-dev; +Cc: Paul Holzinger

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>
---
 passt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/passt.c b/passt.c
index a90568f..5d7e7c4 100644
--- a/passt.c
+++ b/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));
 
-- 
@@ -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));
 
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-27 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22 17:17 [PATCH 1/2] passt: make --quiet set the log level to warning Paul Holzinger
2024-02-22 17:17 ` [PATCH 2/2] conf: set the log level much earlier Paul Holzinger
2024-02-23  8:10   ` David Gibson
2024-02-27 14:27   ` Stefano Brivio
2024-02-23  8:12 ` [PATCH 1/2] passt: make --quiet set the log level to warning David Gibson
2024-02-27 14:27   ` Stefano Brivio
2024-02-27 14:27 ` Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).