From 577b274c5141c8da4c44a15e774170df13e19fdd Mon Sep 17 00:00:00 2001
From: Josh Gross <jogros@microsoft.com>
Date: Tue, 17 Dec 2019 14:47:57 -0500
Subject: [PATCH] More debugging

---
 dist/restore/index.js  | 3 ++-
 dist/save/index.js     | 3 ++-
 src/cacheHttpClient.ts | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dist/restore/index.js b/dist/restore/index.js
index eb89f94..70cccdf 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -1599,12 +1599,13 @@ function getContentRange(start, end) {
 // }
 function uploadChunk(restClient, resourceUrl, data, start, end) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start}`);
+        core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`);
         const requestOptions = getRequestOptions();
         requestOptions.additionalHeaders = {
             "Content-Type": "application/octet-stream",
             "Content-Range": getContentRange(start, end)
         };
+        core.debug(`Resource URL: ${resourceUrl}`);
         return yield restClient.uploadStream("PATCH", resourceUrl, data, requestOptions);
     });
 }
diff --git a/dist/save/index.js b/dist/save/index.js
index 8a46377..3c005f5 100644
--- a/dist/save/index.js
+++ b/dist/save/index.js
@@ -1599,12 +1599,13 @@ function getContentRange(start, end) {
 // }
 function uploadChunk(restClient, resourceUrl, data, start, end) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start}`);
+        core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`);
         const requestOptions = getRequestOptions();
         requestOptions.additionalHeaders = {
             "Content-Type": "application/octet-stream",
             "Content-Range": getContentRange(start, end)
         };
+        core.debug(`Resource URL: ${resourceUrl}`);
         return yield restClient.uploadStream("PATCH", resourceUrl, data, requestOptions);
     });
 }
diff --git a/src/cacheHttpClient.ts b/src/cacheHttpClient.ts
index c8ea6cd..119de8e 100644
--- a/src/cacheHttpClient.ts
+++ b/src/cacheHttpClient.ts
@@ -150,13 +150,14 @@ async function uploadChunk(
     start: number,
     end: number
 ): Promise<IRestResponse<void>> {
-    core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start}`);
+    core.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`);
     const requestOptions = getRequestOptions();
     requestOptions.additionalHeaders = {
         "Content-Type": "application/octet-stream",
         "Content-Range": getContentRange(start, end)
     };
 
+    core.debug(`Resource URL: ${resourceUrl}`);
     return await restClient.uploadStream<void>("PATCH", resourceUrl, data, requestOptions);
 }