mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
1) Don't print the verbose marker in front of every message from ast_verbose()
being sent to remote consoles. 2) Fix pbx_gtkconsole to filter out the verbose marker. (related to issue #12702) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@117507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -906,6 +906,9 @@ void ast_console_puts(const char *string)
|
||||
|
||||
static void network_verboser(const char *s)
|
||||
{
|
||||
if (*s == 127) {
|
||||
s++;
|
||||
}
|
||||
ast_network_puts_mutable(s);
|
||||
}
|
||||
|
||||
|
@@ -139,6 +139,10 @@ static void __verboser(const char *_stuff)
|
||||
|
||||
static void verboser(const char *stuff)
|
||||
{
|
||||
if (*stuff == 127) {
|
||||
stuff++;
|
||||
}
|
||||
|
||||
ast_mutex_lock(&verb_lock);
|
||||
/* Lock appropriately if we're really being called in verbose mode */
|
||||
__verboser(stuff);
|
||||
|
Reference in New Issue
Block a user