summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-03 19:41:19 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-05-03 19:41:19 +0200
commit80a5ffa8d82933c0436c714b512ad6385b692465 (patch)
tree8ae863a4553fd45c029e399903e4ea20103c2229
parentd5bfc60734f9bc7ee0877394e667c135081012b7 (diff)
downloadpacman-80a5ffa8d82933c0436c714b512ad6385b692465.tar.gz
pacman-80a5ffa8d82933c0436c714b512ad6385b692465.tar.xz
added some debug logs
-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;