From 1490b0cea99059a23f917a154db3f39e062ce92e Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 30 Apr 2008 11:26:15 +0000 Subject: Remove extraneous smux log messages for routing daemons connectivity to snmpd --- lib/smux.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/smux.c') diff --git a/lib/smux.c b/lib/smux.c index 218c35d9..c5159dd9 100644 --- a/lib/smux.c +++ b/lib/smux.c @@ -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; -- cgit v1.2.3