Added debug logging

This commit is contained in:
Michiel Broek 2004-09-10 19:04:37 +00:00
parent e8b540a263
commit a48d088da9
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ v0.61.4 11-Aug-2004
libdbase.a:
The files database is moved from ~/fdb to ~/var/fdb.
Added debug logging to dbfdb to find the problem with not
cleaned magic aliases.
mbcico:
Removed a little debug logging.

View File

@ -248,6 +248,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
* the old one.
*/
if (strlen(frec.Magic) && (strcmp(fdb.Magic, frec.Magic) == 0)) {
Syslog('f', "Clear magic %s file %s", fdb.Magic, fdb.LName);
memset(&fdb.Magic, 0, sizeof(fdb.Magic));
}
@ -276,6 +277,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
* the old one.
*/
if (strlen(frec.Magic) && (strcmp(fdb.Magic, frec.Magic) == 0)) {
Syslog('f', "Clear magic %s file %s", fdb.Magic, fdb.LName);
memset(&fdb.Magic, 0, sizeof(fdb.Magic));
}