diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-04-30 11:26:15 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-04-30 11:26:15 +0000 |
commit | 1490b0cea99059a23f917a154db3f39e062ce92e (patch) | |
tree | 9fd1b40f2e98994818c31c544e67cfab7ad51dcd /lib | |
parent | 781a20a48ea2a82d89258a8e20d89dcc4f90ea07 (diff) | |
download | quagga-1490b0cea99059a23f917a154db3f39e062ce92e.tar.bz2 quagga-1490b0cea99059a23f917a154db3f39e062ce92e.tar.xz |
Remove extraneous smux log messages for routing daemons connectivity to snmpd
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smux.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -226,7 +226,8 @@ smux_socket () } freeaddrinfo(res0); if (sock < 0) - zlog_warn ("Can't connect to SNMP agent with SMUX"); + if (debug_smux) + zlog_debug ("Can't connect to SNMP agent with SMUX"); #else sock = socket (AF_INET, SOCK_STREAM, 0); if (sock < 0) @@ -257,7 +258,8 @@ smux_socket () { close (sock); smux_sock = -1; - zlog_warn ("Can't connect to SNMP agent with SMUX"); + if (debug_smux) + zlog_debug ("Can't connect to SNMP agent with SMUX"); return -1; } #endif @@ -1191,7 +1193,8 @@ smux_connect (struct thread *t) smux_sock = smux_socket (); if (smux_sock < 0) { - zlog_warn ("SMUX socket/connection creation error"); + if (debug_smux) + zlog_debug ("SMUX socket/connection creation error"); // if (++fail < SMUX_MAX_FAILURE) smux_event (SMUX_CONNECT, 0); return 0; |