From a7b0f16b9e30b791271e651f0b64d27dc2f68cd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Thu, 18 Mar 2010 13:08:32 +0000 Subject: [PATCH] Initialize harvester with proper logging. --- org.glite.lb.harvester/src/harvester.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.harvester/src/harvester.c b/org.glite.lb.harvester/src/harvester.c index 614f789..41f504a 100644 --- a/org.glite.lb.harvester/src/harvester.c +++ b/org.glite.lb.harvester/src/harvester.c @@ -44,6 +44,7 @@ limitations under the License. #ifdef WITH_LBU_DB #include #include +#include #endif #include #ifndef WITH_OLD_LB @@ -681,7 +682,7 @@ static int db_init(thread_t *t, glite_lbu_DBContext *dbctx) { int err, dbcaps; if (config.dbcs) { - if ((err = glite_lbu_InitDBContext(dbctx, GLITE_LBU_DB_BACKEND_PSQL)) != 0) { + if ((err = glite_lbu_InitDBContext(dbctx, GLITE_LBU_DB_BACKEND_PSQL, LOG_CATEGORY_LB_HARVESTER_DB)) != 0) { lprintf_dbctx(t, ERR, "can't initialize DB context"); return err; } -- 1.8.2.3