Skip to content

Commit

Permalink
downgrade some more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 21, 2024
1 parent d584c61 commit 9211036
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/node-api/src/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export function submitAndWatchTx(api: ApiPromise, signer: KeyringPair, tx: Submi
}
unsub();
} else {
console.log('txStatusChange', result.status.type)
console.debug('txStatusChange', result.status.type)
}
}
tx.signAndSend(signer, {}, onStatusChange)
.then((res) => {
unsub = res;
})
.catch((err) => {
console.log(`{error: ${err.message}}`);
console.error(`{error: ${err.message}}`);
});
}))
}
Expand Down Expand Up @@ -83,15 +83,15 @@ export function extractEvents(api: ApiPromise, result: ISubmittableResult): IExt
message = `could not extract dispatch error: ${JSON.stringify(error)}`;
}
}
console.log('txUpdateEvent', `${JSON.stringify({
console.debug('txUpdateEvent', `${JSON.stringify({
title: `${section}.${method}`,
message
})}`);
error = message;
}

} else {
console.log('txUpdateEvent', `${JSON.stringify({
console.debug('txUpdateEvent', `${JSON.stringify({
title: `${section}.${method}`,
message: data
})}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/worker-api/src/integriteeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class IntegriteeWorker extends Worker {

async sendTrustedCall(call: IntegriteeTrustedCallSigned, shard: ShardIdentifier, requestOptions?: RequestOptions): Promise<Hash> {
if (this.shieldingKey() == undefined) {
console.log(`[sentTrustedCall] Setting the shielding pubKey of the worker.`)
console.debug(`[sentTrustedCall] Setting the shielding pubKey of the worker.`)
await this.getShieldingKey(requestOptions);
}

Expand Down
2 changes: 0 additions & 2 deletions packages/worker-api/src/webCryptoRSA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ export async function parseWebCryptoRSA(data: any): Promise<CryptoKey> {
["encrypt"]
);

console.log(`PublicKey: ${JSON.stringify(publicKey)}`);

return publicKey;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/worker-api/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const parseGetterResponse = (self: IWorker, responseType: string, data: string)
const jsonStr = self.createType('String', returnValue.value);
// Todo: For some reason there are 2 non-utf characters, where I don't know where
// they come from currently.
console.log(`Got shielding key: ${jsonStr.toJSON().substring(2)}`);
console.debug(`Got shielding key: ${jsonStr.toJSON().substring(2)}`);
parsedData = parseWebCryptoRSA(jsonStr.toJSON().substring(2));
break
case 'Vault':
Expand Down

0 comments on commit 9211036

Please sign in to comment.