Skip to content

Commit

Permalink
reduced logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Aug 2, 2024
1 parent 802a3f7 commit 81a2b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export class HttpBridgeModuleResolver<
}

this.logger?.debug(`creating HttpProxy [${firstPart}] ${id}`)
console.log(`creating HttpProxy [${firstPart}] ${id}`)

const proxy = new HttpModuleProxy<T, HttpModuleProxyParams>(finalParams)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export class HttpModuleProxy<

constructor(params: TParams) {
HttpModuleProxy.createCount = HttpModuleProxy.createCount + 1
super(params)
if (Math.floor(HttpModuleProxy.createCount / 10) === HttpModuleProxy.createCount / 10) {
console.log(`HttpModuleProxy.createCount: ${HttpModuleProxy.createCount}`)
this.logger.log(`HttpModuleProxy.createCount: ${HttpModuleProxy.createCount}`)
}
super(params)
}

async proxyQueryHandler<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads: Payload[] = []): Promise<ModuleQueryResult> {
Expand Down

0 comments on commit 81a2b1c

Please sign in to comment.