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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 11 13:57:56 CDT 2016


Anonymous Coward #1000019 has submitted this change and it was merged.

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(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



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: merged
Gerrit-Change-Id: Ie2a1bb3753ad2724c0349ec1a336f52f7117b52a
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-commits mailing list