summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 4 insertions, 0 deletions
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;