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")}`); } }