From dea0dfe1c1b6624943b1ecbac9937307dd83076d Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 19 Sep 2024 13:35:47 -0400 Subject: [PATCH] test: add more loging --- src/DigNetwork/ContentServer.ts | 4 ++-- src/DigNetwork/DigNetwork.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DigNetwork/ContentServer.ts b/src/DigNetwork/ContentServer.ts index 84b2883..4a816b0 100644 --- a/src/DigNetwork/ContentServer.ts +++ b/src/DigNetwork/ContentServer.ts @@ -79,7 +79,7 @@ export class ContentServer { key: string ): Promise<{ success: boolean; headers?: http.IncomingHttpHeaders }> { const url = `https://${this.ipAddress}/${this.storeId}/${key}`; - return this.head(url); // Return the object from head method + return this.head(url); } // Method to check if a specific store exists (HEAD request) @@ -93,7 +93,7 @@ export class ContentServer { url += `?hasRootHash=${options.hasRootHash}`; } - return this.head(url); // Return the object from head method + return this.head(url); } public streamKey(key: string): Promise { diff --git a/src/DigNetwork/DigNetwork.ts b/src/DigNetwork/DigNetwork.ts index ed934b5..950d2a5 100644 --- a/src/DigNetwork/DigNetwork.ts +++ b/src/DigNetwork/DigNetwork.ts @@ -178,7 +178,7 @@ export class DigNetwork { hasRootHash: rootHash, }); - console.log(peerIp, storeResponse.headers); + console.log(peerIp, storeResponse, storeResponse.headers); if ( storeResponse.success &&