Added more debug logging
This commit is contained in:
parent
a48d088da9
commit
40be790b4d
@ -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;
|
int i, Insert, Done = FALSE, Found = FALSE, rc;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
|
Syslog('f', "mbsedb_InsertFDB: \"%s\", magic \"%s\"", frec.LName, frec.Magic);
|
||||||
|
|
||||||
if (mbsedb_LockFDB(fdb_area, 30) == FALSE)
|
if (mbsedb_LockFDB(fdb_area, 30) == FALSE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
@ -228,6 +230,8 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
|
|||||||
}
|
}
|
||||||
} while ((!Found) && (!Done));
|
} while ((!Found) && (!Done));
|
||||||
|
|
||||||
|
Syslog('f', "mbsedb_InsertFDB: insertpoint=%d, found=%s, done=%s", Insert, Found?"true":"false", Done?"true":"false");
|
||||||
|
|
||||||
if (Found) {
|
if (Found) {
|
||||||
if ((fp = fopen(temp, "a+")) == NULL) {
|
if ((fp = fopen(temp, "a+")) == NULL) {
|
||||||
WriteError("$Can't create %s", temp);
|
WriteError("$Can't create %s", temp);
|
||||||
|
Reference in New Issue
Block a user