From 4b13de8af19957cc988b560011556de1167ad618 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 7 Dec 2022 03:02:19 -0500 Subject: [PATCH] *Fix log messages --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2509959..38b9af2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -314,6 +314,7 @@ export default class DHTCache extends EventEmitter { } else if (type === Type.BOOTSTRAP_RESPONSE) { const { bootstrap } = decoded; this._bootstrapFrom(bootstrap); + this.log.debug(`Bootstrap response received`); } else if (type === Type.HEARTBEAT) { const { id: toId, signature, data: bufData } = decoded; @@ -326,9 +327,7 @@ export default class DHTCache extends EventEmitter { this._addEntityConnection(id, bufId as Buffer); this._setEntity(bufId as Buffer, { heartbeat: Date.now() }); - this.log.debug( - `Bootstrap response received from ${bufId.toString("hex")}` - ); + this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`); } }