Added more debug logging

This commit is contained in:
Michiel Broek 2004-09-12 11:29:55 +00:00
parent a48d088da9
commit 40be790b4d

View File

@ -193,6 +193,8 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
int i, Insert, Done = FALSE, Found = FALSE, rc;
FILE *fp;
Syslog('f', "mbsedb_InsertFDB: \"%s\", magic \"%s\"", frec.LName, frec.Magic);
if (mbsedb_LockFDB(fdb_area, 30) == FALSE)
return FALSE;
@ -228,6 +230,8 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
}
} while ((!Found) && (!Done));
Syslog('f', "mbsedb_InsertFDB: insertpoint=%d, found=%s, done=%s", Insert, Found?"true":"false", Done?"true":"false");
if (Found) {
if ((fp = fopen(temp, "a+")) == NULL) {
WriteError("$Can't create %s", temp);