From 2d2a8944bed593e3cd2a66fe1b25288a62437423 Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Tue, 27 Sep 2016 16:35:38 -0400
Subject: [PATCH] logger: Output early verbose messages to console.

Verbose messages should be printed to the console if the sublevel is
less than option_verbose.  This fix ensures the welcome message with
copyright and license are printed at daemon and interactive rasterisk
startup.

ASTERISK-26410 #close

Change-Id: Ia44235e30ec328aba92ea2c8a837b094e65c9a03
---
 main/logger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/logger.c b/main/logger.c
index 0c839ffeea..d4cd25122e 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1572,7 +1572,7 @@ static void logger_print_normal(struct logmsg *logmsg)
 				break;
 			}
 		}
-	} else if (logmsg->level != __LOG_VERBOSE) {
+	} else if (logmsg->level != __LOG_VERBOSE || option_verbose >= logmsg->sublevel) {
 		fputs(logmsg->message, stdout);
 	}
 
-- 
GitLab