Add ability to disable log / verbose output to remote consoles (issue #6524 reported by mavetju)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-05-26 19:48:17 +00:00
parent fba5d28317
commit 9b18892314
4 changed files with 80 additions and 6 deletions

View File

@@ -756,11 +756,11 @@ void ast_log(int level, const char *file, int line, const char *function, const
term_color(tmp3, linestr, COLOR_BRWHITE, 0, sizeof(tmp3)),
term_color(tmp4, function, COLOR_BRWHITE, 0, sizeof(tmp4)));
ast_console_puts(buf);
ast_console_puts_mutable(buf);
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
ast_console_puts(buf);
ast_console_puts_mutable(buf);
}
/* File channels */
} else if ((chan->logmask & (1 << level)) && (chan->fileptr)) {