Skip to content

Commit

Permalink
suppress dkls client logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgeihs committed Dec 16, 2024
1 parent ac353ad commit 095d686
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mpcCoreKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,13 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
this.wasmLib as DKLSWasmLib
);

// Suppress client logs if logging is disabled.
client.log = (msg: string) => {
if (!this.enableLogging) return;
// eslint-disable-next-line no-console
console.log(msg);
};

const serverCoeffs: Record<number, string> = {};
for (let i = 0; i < participatingServerDKGIndexes.length; i++) {
const serverIndex = participatingServerDKGIndexes[i];
Expand Down

0 comments on commit 095d686

Please sign in to comment.