From 80a5ffa8d82933c0436c714b512ad6385b692465 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 3 May 2005 17:41:19 +0000 Subject: added some debug logs --- lib/libalpm/db.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libalpm') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 8ff5cc7f..7f24224b 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -43,6 +43,8 @@ pmdb_t *db_open(char *root, char *dbpath, char *treename) return(NULL); } + _alpm_log(PM_LOG_DEBUG, "opening database '%s'", treename); + MALLOC(db, sizeof(pmdb_t)); MALLOC(db->path, strlen(root)+strlen(dbpath)+strlen(treename)+2); @@ -71,6 +73,8 @@ void db_close(pmdb_t *db) return; } + _alpm_log(PM_LOG_DEBUG, "closing database '%s'", db->treename); + if(db->dir) { closedir(db->dir); db->dir = NULL; -- cgit v1.2.3-70-g09d2