mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-02 05:33:09 +00:00
refactor: Use log instead of console.log in pairing module
This commit is contained in:
parent
8bafd89ca4
commit
dc2fd56797
@ -247,7 +247,7 @@ export class WakuPairing {
|
||||
const confirmationPromise = this.isAuthCodeConfirmed();
|
||||
await delay(100);
|
||||
this.eventEmitter.emit("authCodeGenerated", this.handshake.genAuthcode());
|
||||
console.log("Waiting for authcode confirmation...");
|
||||
log("Waiting for authcode confirmation...");
|
||||
const confirmed = await confirmationPromise;
|
||||
if (!confirmed) {
|
||||
throw new Error("authcode is not confirmed");
|
||||
@ -309,7 +309,7 @@ export class WakuPairing {
|
||||
const confirmationPromise = this.isAuthCodeConfirmed();
|
||||
await delay(100);
|
||||
this.eventEmitter.emit("authCodeGenerated", this.handshake.genAuthcode());
|
||||
console.log("Waiting for authcode confirmation...");
|
||||
log("Waiting for authcode confirmation...");
|
||||
const confirmed = await confirmationPromise;
|
||||
if (!confirmed) {
|
||||
throw new Error("authcode is not confirmed");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user