[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: Added debug output for IDO transactions

git at icinga.org git at icinga.org
Thu Feb 21 19:32:09 CET 2013


Module: icinga-core
Branch: mfriedrich/core
Commit: 615b6adeaef4730ad4c0c71d6fb34667452889c5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=615b6adeaef4730ad4c0c71d6fb34667452889c5

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Thu Jan 10 11:23:00 2013 +0100

Added debug output for IDO transactions

---

 module/idoutils/src/db.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index d8bb55e..efeb608 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -2906,6 +2906,7 @@ int ido2db_db_perform_maintenance(ido2db_idi *idi) {
 
 int ido2db_db_tx_begin(ido2db_idi *idi) {
 #ifdef USE_LIBDBI
+	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_db_tx_begin()\n");
 	return ido2db_db_query(idi, "BEGIN");
 #else /* USE_LIBDBI */
 	return IDO_OK;
@@ -2914,6 +2915,7 @@ int ido2db_db_tx_begin(ido2db_idi *idi) {
 
 int ido2db_db_tx_commit(ido2db_idi *idi) {
 #ifdef USE_LIBDBI
+	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_db_tx_commit()\n");
 	return ido2db_db_query(idi, "COMMIT");
 #else /* USE_LIBDBI */
 	return IDO_OK;





More information about the icinga-checkins mailing list