summaryrefslogtreecommitdiffstats
path: root/plugins/omelasticsearch/omelasticsearch.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-07-30 13:06:44 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-07-30 13:06:44 +0200
commitcb12ed5dd211f9910860e86fd937180895c459de (patch)
treeee48ef9e6d3ca45313ffb7457a8bffb922343738 /plugins/omelasticsearch/omelasticsearch.c
parent36f7fbd5f458c3e8b2924a72f74621e055f319b2 (diff)
downloadrsyslog-cb12ed5dd211f9910860e86fd937180895c459de.tar.gz
rsyslog-cb12ed5dd211f9910860e86fd937180895c459de.tar.bz2
rsyslog-cb12ed5dd211f9910860e86fd937180895c459de.zip
omelasticsearch: improved debug logging
Diffstat (limited to 'plugins/omelasticsearch/omelasticsearch.c')
-rw-r--r--plugins/omelasticsearch/omelasticsearch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c
index fea85f22..48cfef7d 100644
--- a/plugins/omelasticsearch/omelasticsearch.c
+++ b/plugins/omelasticsearch/omelasticsearch.c
@@ -408,8 +408,11 @@ writeDataError(instanceData *pData, cJSON **pReplyRoot, uchar *reqmsg)
char errStr[1024];
DEFiRet;
- if(pData->errorFile == NULL)
+ if(pData->errorFile == NULL) {
+ DBGPRINTF("omelasticsearch: no local error logger defined - "
+ "ignoring ES error information\n");
FINALIZE;
+ }
if(pData->fdErrFile == -1) {
pData->fdErrFile = open((char*)pData->errorFile,
@@ -478,7 +481,7 @@ DBGPRINTF("omelasticsearch: %d items in reply\n", numitems);
ok = cJSON_GetObjectItem(create, "ok");
if(ok == NULL || ok->type != cJSON_True) {
DBGPRINTF("omelasticsearch: error in elasticsearch reply: "
- "item ok (%p) not ok\n", ok);
+ "item %d, prop ok (%p) not ok\n", i, ok);
ABORT_FINALIZE(RS_RET_DATAFAIL);
}
}