summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-10-09 22:28:52 -0400
committerCorey Farrell <git@cfware.com>2016-10-10 16:54:51 -0500
commitfafdde322cdb303d7c7df297316a25a8ab666085 (patch)
treec227a299ac8b049773e287b5412afbf5a435d60b /main/logger.c
parent3ab7fae96b610a69c0a4f7fa639c658810858e63 (diff)
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
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c
index d4cd25122..7d0d2de1e 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1867,6 +1867,10 @@ static void __attribute__((format(printf, 7, 0))) ast_log_full(int level, int su
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;