Skip to content

Commit

Permalink
refactor(golem-network): pass GN logger to the underlying storage pro…
Browse files Browse the repository at this point in the history
…vider
  • Loading branch information
grisha87 committed Jul 16, 2024
1 parent 756323b commit 28fadc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/golem-network/golem-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28fadc2

Please sign in to comment.