move two ast_log calls to ast_debug.
authorMichiel van Baak <michiel@vanbaak.info>
Sat, 16 Feb 2008 21:22:00 +0000 (21:22 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Sat, 16 Feb 2008 21:22:00 +0000 (21:22 +0000)
Now monitoring chan_skinny port with nagios or zabbix wont generate noise on the console.
@ok tilghman

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103750 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 5ec06a1..6d79aab 100644 (file)
@@ -5509,7 +5509,7 @@ static int get_input(struct skinnysession *s)
                
                dlen = letohl(*(int *)s->inbuf);
                if (dlen < 4) {
-                       ast_log(LOG_WARNING, "Skinny Client sent invalid data.\n");
+                       ast_debug(1, "Skinny Client sent invalid data.\n");
                        ast_mutex_unlock(&s->lock);
                        return -1;
                }
@@ -5582,7 +5582,7 @@ static void *skinny_session(void *data)
                        }
                }
        }
-       ast_log(LOG_NOTICE, "Skinny Session returned: %s\n", strerror(errno));
+       ast_debug(3, "Skinny Session returned: %s\n", strerror(errno));
 
        if (s) 
                destroy_session(s);