From 28fadc2fb2e060df3f31104a1457ce12a161986b Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Tue, 16 Jul 2024 12:09:06 +0200 Subject: [PATCH] refactor(golem-network): pass GN logger to the underlying storage provider --- src/golem-network/golem-network.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/golem-network/golem-network.ts b/src/golem-network/golem-network.ts index 1e40d30f8..6c00f5908 100644 --- a/src/golem-network/golem-network.ts +++ b/src/golem-network/golem-network.ts @@ -646,10 +646,12 @@ export class GolemNetwork { if (typeof this.options.dataTransferProtocol === "string") { switch (this.options.dataTransferProtocol) { case "ws": - return new WebSocketBrowserStorageProvider(this.yagna, {}); + return new WebSocketBrowserStorageProvider(this.yagna, { + logger: this.logger, + }); case "gftp": default: - return new GftpStorageProvider(); + return new GftpStorageProvider(this.logger); } } else if (this.options.dataTransferProtocol !== undefined) { return this.options.dataTransferProtocol;