[Asterisk-code-review] logger: Output early verbose messages to console. (asterisk[14])
Corey Farrell
asteriskteam at digium.com
Tue Sep 27 15:43:47 CDT 2016
Corey Farrell has uploaded a new change for review.
https://gerrit.asterisk.org/3991
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(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/91/3991/1
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: newchange
Gerrit-Change-Id: Ia44235e30ec328aba92ea2c8a837b094e65c9a03
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Corey Farrell <git at cfware.com>
More information about the asterisk-code-review
mailing list