Skip to content

Commit

Permalink
Add debugging for Issue 2447
Browse files Browse the repository at this point in the history
* Add debugging for Issue #2447
  • Loading branch information
abraunegg committed Jul 10, 2023
1 parent b2bf6aa commit 4c8e2cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/onedrive.d
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,8 @@ final class OneDriveApi
} else {
resourceItem = "/me/drive/root";
}
// Debug output for the subscription resource item
log.vdebug("Setting subsription resourceItem as: ", resourceItem);

// create JSON request to create webhook subscription
const JSONValue request = [
Expand All @@ -1038,6 +1040,9 @@ final class OneDriveApi
"expirationDateTime": expirationDateTime.toISOExtString(),
"clientState": randomUUID().toString()
];

// Debug output of the full required for the webhook subscription creation
log.vdebug("Create subsription request: ", request.toString());
http.addRequestHeader("Content-Type", "application/json");
JSONValue response;

Expand Down

0 comments on commit 4c8e2cb

Please sign in to comment.