[Devel] [PATCH 03/10] vzctl_init_ploop_log() gets shorter

Igor Podlesny openvz at poige.ru
Mon May 6 23:42:05 PDT 2013


---
 src/lib/logger.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lib/logger.c b/src/lib/logger.c
index 9cf9ee9..247adec 100644
--- a/src/lib/logger.c
+++ b/src/lib/logger.c
@@ -191,11 +191,8 @@ void vzctl_init_ploop_log(void)
 {
 	ploop.set_log_file(g_log.file);
 	ploop.set_log_level(g_log.level);
-	if (!g_log.quiet)
-		ploop.set_verbose_level(g_log.level);
-	else
-		ploop.set_verbose_level(PLOOP_LOG_NOCONSOLE);
-
+	ploop.set_verbose_level(g_log.quiet ? PLOOP_LOG_NOCONSOLE
+		: g_log.level);
 	ploop_log = 1;
 }
 #endif
-- 
1.7.9.5




More information about the Devel mailing list