[icinga-checkins] icinga.org: icinga-core/test/cgis: change trace default #1314

git at icinga.org git at icinga.org
Tue Jul 5 21:38:12 CEST 2011


Module: icinga-core
Branch: test/cgis
Commit: 040f074a7505ed83477a8d1d732b9d40d9fc78f5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=040f074a7505ed83477a8d1d732b9d40d9fc78f5

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Mon Jun 13 15:13:54 2011 +0200

change trace default #1314
add doc
refs #1314

---

 module/idoutils/include/ido2db.h |    4 ++--
 module/idoutils/src/db.c         |    8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/module/idoutils/include/ido2db.h b/module/idoutils/include/ido2db.h
index 2d59dcd..b3fc6f8 100644
--- a/module/idoutils/include/ido2db.h
+++ b/module/idoutils/include/ido2db.h
@@ -377,8 +377,8 @@ typedef struct ido2db_input_data_info_struct{
 #define DEFAULT_OCI_ERRORS_TO_SYSLOG 		1
 
 /************* oracle trace level defaults ************/
-#define DEFAULT_ORACLE_TRACE_LEVEL 		8
-#define ORACLE_TRACE_LEVEL_OFF 		0
+#define DEFAULT_ORACLE_TRACE_LEVEL		4
+#define ORACLE_TRACE_LEVEL_OFF 			0
 /************* n worker threads ****************/
 
 #define IDO2DB_CLEANER_THREADS			1
diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index 51a3cdf..b05283e 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -6208,7 +6208,7 @@ int ido2db_oci_set_trace_event(OCI_Connection *cn,unsigned int trace_level) {
  * executes a statement and handle DBMS_OUTPUT
  * @param OCI_Connection
  * @param OCI_Statement
- * @returns IDO_OK
+ * @return IDO_OK
  */
 int ido2db_oci_execute_out(OCI_Connection *cn,OCI_Statement *st, char * fname) {
 	const dtext *p;
@@ -6226,6 +6226,12 @@ int ido2db_oci_execute_out(OCI_Connection *cn,OCI_Statement *st, char * fname) {
 	}
 	return IDO_OK;
 }
+/**
+ * set oracle session application info details
+ * @param OCI_Connection
+ * @param action string (agent_name)
+ * @return IDO_OK
+ */
 int ido2db_oci_set_appinfo(OCI_Connection *cn, char * action) {
 	/* set oracle session application info module*/
 		 char * fname="ido2db_oci_set_appinfo";





More information about the icinga-checkins mailing list