[Asterisk-code-review] logger: Output early verbose messages to console. (asterisk[14])

Joshua Colp asteriskteam at digium.com
Wed Sep 28 19:19:28 CDT 2016


Joshua Colp has submitted this change and it was merged.

Change subject: logger: Output early verbose messages to console.
......................................................................


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
---
M main/logger.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Verified



diff --git a/main/logger.c b/main/logger.c
index 0c839ff..d4cd251 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1572,7 +1572,7 @@
 				break;
 			}
 		}
-	} else if (logmsg->level != __LOG_VERBOSE) {
+	} else if (logmsg->level != __LOG_VERBOSE || option_verbose >= logmsg->sublevel) {
 		fputs(logmsg->message, stdout);
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/3991
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia44235e30ec328aba92ea2c8a837b094e65c9a03
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list