summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Fernando Munoz Mejias <Luis.Fernando.Munoz.Mejias@cern.ch>2009-11-12 14:44:30 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-12 14:44:30 +0100
commit4be35fbc60c94ee504f5a0428270b59d8438c9f4 (patch)
treeda21283ee510374bdae3e2b439108fe08a6d4568
parent54672aa273f3fa19435e1c300f258ec6059745d8 (diff)
downloadrsyslog-4be35fbc60c94ee504f5a0428270b59d8438c9f4.tar.gz
rsyslog-4be35fbc60c94ee504f5a0428270b59d8438c9f4.tar.xz
rsyslog-4be35fbc60c94ee504f5a0428270b59d8438c9f4.zip
Debug output to find out a crash
-rw-r--r--plugins/omoracle/omoracle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c
index 67b0cff0..c3acfb38 100644
--- a/plugins/omoracle/omoracle.c
+++ b/plugins/omoracle/omoracle.c
@@ -346,14 +346,18 @@ static void log_detailed_err(instanceData* pData)
OCIAttrGet(pData->statement, OCI_HTYPE_STMT, &errs, 0,
OCI_ATTR_NUM_DML_ERRORS, pData->error);
-
+ dbgprintf("There were %d errors\n", errs);
for (i = 0; i < errs; i++) {
+ dbgprintf("Allocating stuff %d\n", i);
OCIHandleAlloc(pData->environment, &er2, OCI_HTYPE_ERROR,
0, NULL);
+ dbgprintf("ParamGet %d\n", i);
OCIParamGet(pData->error, OCI_HTYPE_ERROR,
er2, &er, i);
+ dbgprintf("AttrGet %d\n", i);
OCIAttrGet(er, OCI_HTYPE_ERROR, &row, 0,
OCI_ATTR_DML_ROW_OFFSET, er2);
+ dbgprintf("ErrorGet %d\n", i);
OCIErrorGet(er, row, NULL, &code, buf, sizeof buf,
OCI_HTYPE_ERROR);
errmsg.LogError(0, NO_ERRCODE, "FAILURE DETAILS: %s", buf);