[Nagios-checkins] ndoutils/src db.c,1.6,1.7

Duncan Ferguson duncan_ferguson at users.sourceforge.net
Thu Aug 6 14:51:11 UTC 2009


Update of /cvsroot/nagios/ndoutils/src
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31970/src

Modified Files:
	db.c 
Log Message:
Move database connections/disconnections syslog detail to DEBUG from INFO (Opsera Ltd)


Index: db.c
===================================================================
RCS file: /cvsroot/nagios/ndoutils/src/db.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** db.c	6 Aug 2009 14:48:46 -0000	1.6
--- db.c	6 Aug 2009 14:51:09 -0000	1.7
***************
*** 215,219 ****
  		else{
  			idi->dbinfo.connected=NDO_TRUE;
! 			syslog(LOG_USER|LOG_INFO,"Successfully connected to MySQL database");
  		        }
  #endif
--- 215,219 ----
  		else{
  			idi->dbinfo.connected=NDO_TRUE;
! 			syslog(LOG_USER|LOG_DEBUG,"Successfully connected to MySQL database");
  		        }
  #endif
***************
*** 233,237 ****
  		else{
  			idi->dbinfo.connected=NDO_TRUE;
! 			syslog(LOG_USER|LOG_INFO,"Successfully connect to PostgreSQL database");
  		        }
  #endif
--- 233,237 ----
  		else{
  			idi->dbinfo.connected=NDO_TRUE;
! 			syslog(LOG_USER|LOG_DEBUG,"Successfully connected to PostgreSQL database");
  		        }
  #endif
***************
*** 260,264 ****
  		/* close the connection to the database server */		
  		mysql_close(&idi->dbinfo.mysql_conn);
! 		syslog(LOG_USER|LOG_INFO,"Successfully disconnected from MySQL database");
  #endif
  		break;
--- 260,264 ----
  		/* close the connection to the database server */		
  		mysql_close(&idi->dbinfo.mysql_conn);
! 		syslog(LOG_USER|LOG_DEBUG,"Successfully disconnected from MySQL database");
  #endif
  		break;
***************
*** 268,272 ****
  		if(PQstatus(idi->dbinfo.pgsql_conn)!=CONNECTION_BAD)
  			PQfinish(idi->dbinfo.pgsql_conn);
! 		syslog(LOG_USER|LOG_INFO,"Successfully disconnected from PostgreSQL database");
  #endif
  		break;
--- 268,272 ----
  		if(PQstatus(idi->dbinfo.pgsql_conn)!=CONNECTION_BAD)
  			PQfinish(idi->dbinfo.pgsql_conn);
! 		syslog(LOG_USER|LOG_DEBUG,"Successfully disconnected from PostgreSQL database");
  #endif
  		break;





More information about the Nagios-commits mailing list