summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-15 09:00:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-15 09:00:05 +0000
commit6e19858385ed14f7f7326801de212e7acd2bbac8 (patch)
tree90cd13ee30ba24d693b64e2fd8e36b88c90c796d /plugins
parent70d90f5bae2728faed319a03f75e64a50f88a159 (diff)
downloadrsyslog-6e19858385ed14f7f7326801de212e7acd2bbac8.tar.gz
rsyslog-6e19858385ed14f7f7326801de212e7acd2bbac8.tar.xz
rsyslog-6e19858385ed14f7f7326801de212e7acd2bbac8.zip
the libdbi problem was actually related to libdbi/distro packages; fixed
that by installing from source, now omlibdbi basically works removed some debug code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omlibdbi/omlibdbi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/omlibdbi/omlibdbi.c b/plugins/omlibdbi/omlibdbi.c
index 02b56b51..0b0f4abf 100644
--- a/plugins/omlibdbi/omlibdbi.c
+++ b/plugins/omlibdbi/omlibdbi.c
@@ -153,23 +153,13 @@ static rsRetVal initConn(instanceData *pData, int bSilent)
ASSERT(pData != NULL);
ASSERT(pData->conn == NULL);
+ // TODO: add config setting for driver directory
iDrvrsLoaded = dbi_initialize(NULL);
- //iDrvrsLoaded = dbi_initialize("/usr/lib64/dbd/");
-RUNLOG_VAR("%d", iDrvrsLoaded);
if(iDrvrsLoaded == 0) {
logerror("libdbi error: no dbi drivers present on this system - suspending. Install drivers!");
ABORT_FINALIZE(RS_RET_SUSPENDED);
}
- // debug drivers
- dbi_driver drvr;
- drvr = NULL;
- do {
-RUNLOG;
- drvr = dbi_driver_list(drvr);
- dbgprintf("driver: '%s'\n", dbi_driver_get_name(drvr));
- } while(drvr != NULL);
-
RUNLOG_VAR("%s", pData->drvrName);
pData->conn = dbi_conn_new((char*)pData->drvrName);
if(pData->conn == NULL) {