mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-29 02:40:13 +02:00
update debugging
update debugging
This commit is contained in:
parent
6946808052
commit
31d15886bd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue