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

Kevin Harwell asteriskteam at digium.com
Thu Sep 29 16:10:11 CDT 2016


Kevin Harwell 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
(cherry picked from commit 013414ca4b32fa4f25ec37076b537d0bb130be9f)
---
M main/logger.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Kevin Harwell: Looks good to me, approved
  George Joseph: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified



diff --git a/main/logger.c b/main/logger.c
index 315de9f..204b667 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/4006
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia44235e30ec328aba92ea2c8a837b094e65c9a03
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14.0
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list