update debugging

update debugging
This commit is contained in:
abraunegg 2018-08-26 07:06:04 +10:00
parent 6946808052
commit 31d15886bd

View file

@ -179,17 +179,12 @@ final class ItemDatabase
path = "root/" ~ path.chompPrefix(".");
auto s = db.prepare("SELECT * FROM item WHERE name = ?1 AND driveId IS ?2 AND parentId IS ?3");
foreach (name; pathSplitter(path)) {
// Issue #121 Debugging
log.log("Path: ", name);
log.log("driveId: ", currItem.driveId);
log.log("itemId: ", currItem.id);
s.bind(1, name);
s.bind(2, currItem.driveId);
s.bind(3, currItem.id);
auto r = s.exec();
if (r.empty) {
// Issue #121 Debugging
log.log("ERROR - This item was not found in the database: ", name ~ ", " ~ currItem.driveId ~ ", " ~ currItem.id);
return false;
}