mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
log: logs are already prefixed with waku (#2603)
This commit is contained in:
parent
0dfbcf6b6b
commit
826aedd558
@ -13,7 +13,7 @@ import type { IdentityCredential } from "./identity.js";
|
||||
import { RlnMessage, toRLNSignal } from "./message.js";
|
||||
import { RLNInstance } from "./rln.js";
|
||||
|
||||
const log = new Logger("waku:rln:encoder");
|
||||
const log = new Logger("rln:encoder");
|
||||
|
||||
export class RLNEncoder implements IEncoder {
|
||||
private readonly idSecretHash: Uint8Array;
|
||||
|
||||
@ -21,7 +21,7 @@ import {
|
||||
RLNContractInitOptions
|
||||
} from "./types.js";
|
||||
|
||||
const log = new Logger("waku:rln:contract:base");
|
||||
const log = new Logger("rln:contract:base");
|
||||
|
||||
export class RLNBaseContract {
|
||||
public contract: ethers.Contract;
|
||||
|
||||
@ -9,7 +9,7 @@ import { BytesUtils } from "../utils/bytes.js";
|
||||
import { RLNBaseContract } from "./rln_base_contract.js";
|
||||
import { RLNContractInitOptions } from "./types.js";
|
||||
|
||||
const log = new Logger("waku:rln:contract");
|
||||
const log = new Logger("rln:contract");
|
||||
|
||||
export class RLNContract extends RLNBaseContract {
|
||||
private instance: RLNInstance;
|
||||
|
||||
@ -17,7 +17,7 @@ import { BytesUtils } from "./utils/bytes.js";
|
||||
import { extractMetaMaskSigner } from "./utils/index.js";
|
||||
import { Zerokit } from "./zerokit.js";
|
||||
|
||||
const log = new Logger("waku:credentials");
|
||||
const log = new Logger("rln:credentials");
|
||||
|
||||
/**
|
||||
* Manages credentials for RLN
|
||||
|
||||
@ -27,7 +27,7 @@ import type {
|
||||
Sha256Hash
|
||||
} from "./types.js";
|
||||
|
||||
const log = new Logger("waku:rln:keystore");
|
||||
const log = new Logger("rln:keystore");
|
||||
|
||||
type NwakuCredential = {
|
||||
crypto: {
|
||||
|
||||
@ -26,7 +26,7 @@ import * as wc from "./resources/witness_calculator";
|
||||
import { WitnessCalculator } from "./resources/witness_calculator";
|
||||
import { Zerokit } from "./zerokit.js";
|
||||
|
||||
const log = new Logger("waku:rln");
|
||||
const log = new Logger("rln");
|
||||
|
||||
type WakuRLNEncoderOptions = WakuEncoderOptions & {
|
||||
credentials: EncryptedCredentials | DecryptedCredentials;
|
||||
|
||||
@ -2,7 +2,7 @@ import { Logger } from "@waku/utils";
|
||||
|
||||
const DefaultEpochUnitSeconds = 10; // the rln-relay epoch length in seconds
|
||||
|
||||
const log = new Logger("waku:rln:epoch");
|
||||
const log = new Logger("rln:epoch");
|
||||
|
||||
export function dateToEpoch(
|
||||
timestamp: Date,
|
||||
|
||||
@ -38,7 +38,7 @@ import { Store } from "../store/index.js";
|
||||
|
||||
import { waitForRemotePeer } from "./wait_for_remote_peer.js";
|
||||
|
||||
const log = new Logger("waku");
|
||||
const log = new Logger("sdk:waku");
|
||||
|
||||
type ProtocolsEnabled = {
|
||||
filter?: boolean;
|
||||
|
||||
@ -30,7 +30,7 @@ export const DEFAULT_BLOOM_FILTER_OPTIONS = {
|
||||
const DEFAULT_CAUSAL_HISTORY_SIZE = 200;
|
||||
const DEFAULT_POSSIBLE_ACKS_THRESHOLD = 2;
|
||||
|
||||
const log = new Logger("waku:sds:message-channel");
|
||||
const log = new Logger("sds:message-channel");
|
||||
|
||||
export interface MessageChannelOptions {
|
||||
causalHistorySize?: number;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user