summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-15 09:19:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-15 09:19:22 +0000
commitb2548ac5646b65a77ea160429c7e41a335777caf (patch)
tree720bc22f3197f7d970a4d3cbadd36eda6cfad43e /plugins
parent6e19858385ed14f7f7326801de212e7acd2bbac8 (diff)
downloadrsyslog-b2548ac5646b65a77ea160429c7e41a335777caf.tar.gz
rsyslog-b2548ac5646b65a77ea160429c7e41a335777caf.tar.xz
rsyslog-b2548ac5646b65a77ea160429c7e41a335777caf.zip
cleaned up omlibdbi - works now
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omlibdbi/omlibdbi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/omlibdbi/omlibdbi.c b/plugins/omlibdbi/omlibdbi.c
index 0b0f4abf..81c047bd 100644
--- a/plugins/omlibdbi/omlibdbi.c
+++ b/plugins/omlibdbi/omlibdbi.c
@@ -4,6 +4,10 @@
* NOTE: read comments in module-template.h to understand how this file
* works!
*
+ * This depends on libdbi being present with the proper settings. Older
+ * versions do not necessarily have them. Please visit this bug tracker
+ * for details: http://bugzilla.adiscon.com/show_bug.cgi?id=31
+ *
* File begun on 2008-02-14 by RGerhards (extracted from syslogd.c)
*
* Copyright 2008 Rainer Gerhards and Adiscon GmbH.
@@ -156,17 +160,15 @@ static rsRetVal initConn(instanceData *pData, int bSilent)
// TODO: add config setting for driver directory
iDrvrsLoaded = dbi_initialize(NULL);
if(iDrvrsLoaded == 0) {
- logerror("libdbi error: no dbi drivers present on this system - suspending. Install drivers!");
+ logerror("libdbi error: libdbi or libdbi drivers not present on this system - suspending.");
ABORT_FINALIZE(RS_RET_SUSPENDED);
}
-RUNLOG_VAR("%s", pData->drvrName);
pData->conn = dbi_conn_new((char*)pData->drvrName);
if(pData->conn == NULL) {
logerror("can not initialize libdbi connection");
iRet = RS_RET_SUSPENDED;
} else { /* we could get the handle, now on with work... */
-RUNLOG_STR("trying dbi connect");
/* Connect to database */
dbi_conn_set_option(pData->conn, "host", (char*) pData->host);
dbi_conn_set_option(pData->conn, "username", (char*) pData->usrName);
@@ -187,7 +189,6 @@ finalize_it:
/* The following function writes the current log entry
* to an established MySQL session.
- * Initially added 2004-10-28 mmeckelein
*/
rsRetVal writeDB(uchar *psz, instanceData *pData)
{