From f164f7a6d3d313cd966d9cc414b7f214af2d8108 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 19 Dec 2022 08:51:35 -0500 Subject: [PATCH] *Pass child pino logger to dht-cache --- src/modules/rpc/cache.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/rpc/cache.ts b/src/modules/rpc/cache.ts index 43e5bd3..9e1cce1 100644 --- a/src/modules/rpc/cache.ts +++ b/src/modules/rpc/cache.ts @@ -8,6 +8,7 @@ import jsonStringify from "json-stringify-deterministic"; // @ts-ignore import crypto from "hypercore-crypto"; import NodeCache from "node-cache"; +import { log } from "../../log.js"; export class RPCCache extends EventEmitter { private server: RPCServer; @@ -18,6 +19,7 @@ export class RPCCache extends EventEmitter { this._swarm = getSwarm(); this._dhtCache = new DHTCache(this._swarm, { protocol: "lumeweb.rpccache", + logger: log.child({ module: "dht-cache" }), }); this._data.on("del", (key: string) => { try {