[Asterisk-code-review] logger: Prevent output of verbose messages initiated from ra... (asterisk[master])

Corey Farrell asteriskteam at digium.com
Mon Oct 10 16:54:52 CDT 2016


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/4064

Change subject: logger: Prevent output of verbose messages initiated from rasterisk.
......................................................................

logger: Prevent output of verbose messages initiated from rasterisk.

Remote asterisk consoles should only display verbose log messages
created by the daemon.  The first patch for ASTERISK-26410 caused
a couple verbose messages to be printed when the rasterisk process
ended.

ASTERISK-26410

Change-Id: Ie2a1bb3753ad2724c0349ec1a336f52f7117b52a
---
M main/logger.c
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/64/4064/1

diff --git a/main/logger.c b/main/logger.c
index d4cd251..7d0d2de 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1867,6 +1867,10 @@
 	int res = 0;
 	char datestring[256];
 
+	if (level == __LOG_VERBOSE && ast_opt_remote && ast_opt_exec) {
+		return;
+	}
+
 	if (!(buf = ast_str_thread_get(&log_buf, LOG_BUF_INIT_SIZE)))
 		return;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2a1bb3753ad2724c0349ec1a336f52f7117b52a
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-code-review mailing list