Console fix (bug #2764) and logger fix...
authorMark Spencer <markster@digium.com>
Mon, 1 Nov 2004 01:48:35 +0000 (01:48 +0000)
committerMark Spencer <markster@digium.com>
Mon, 1 Nov 2004 01:48:35 +0000 (01:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4136 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c
logger.c

index 1a0a6df..f74d0ac 100755 (executable)
@@ -247,13 +247,15 @@ static void network_verboser(const char *s, int pos, int replace, int complete)
                char *t = alloca(strlen(s) + 2);
                if (t) {
                        sprintf(t, "\r%s", s);
-                       ast_network_puts(t);
+                       if (complete)
+                               ast_network_puts(t);
                } else {
                        ast_log(LOG_ERROR, "Out of memory\n");
                        ast_network_puts(s);
                }
        } else {
-               ast_network_puts(s);
+               if (complete)
+                       ast_network_puts(s);
        }
 }
 
index 0fd0b2f..3904968 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -52,7 +52,7 @@ static char dateformat[256] = "%b %e %T";             /* Original Asterisk Format */
 AST_MUTEX_DEFINE_STATIC(msglist_lock);
 AST_MUTEX_DEFINE_STATIC(loglock);
 static int pending_logger_reload = 0;
-static int global_logmask = 0;
+static int global_logmask = -1;
 
 static struct msglist {
        char *msg;