Update sync.d

* Update logging output
This commit is contained in:
abraunegg 2023-12-21 07:33:32 +11:00
parent cbe55cd4d2
commit 8d272b0f77

View file

@ -3284,8 +3284,9 @@ class SyncEngine {
}
// Check for HTML entities (e.g., '%20' for space) in source JSON
if (onedriveJSONItem["parentReference"]["path"].str.canFind("%")) {
log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync.");
if (selfBuiltPath.canFind("%")) {
log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync.");
log.error("WORKAROUND: A possible workaround is to rename this item online: " ~ selfBuiltPath);
log.error("See: https://github.com/OneDrive/onedrive-api-docs/issues/1765 for further details");
}
@ -6800,8 +6801,9 @@ class SyncEngine {
}
// Check for HTML entities (e.g., '%20' for space) in source JSON
if (onedriveJSONItem["parentReference"]["path"].str.canFind("%")) {
log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync.");
if (selfBuiltPath.canFind("%")) {
log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync.");
log.error("WORKAROUND: A possible workaround is to rename this item online: " ~ selfBuiltPath);
log.error("See: https://github.com/OneDrive/onedrive-api-docs/issues/1765 for further details");
}