added some debug logs

This commit is contained in:
Aurelien Foret 2005-05-03 17:41:19 +00:00
parent d5bfc60734
commit 80a5ffa8d8
1 changed files with 4 additions and 0 deletions

View File

@ -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;