*Fix log messages

This commit is contained in:
Derrick Hammer 2022-12-07 03:02:19 -05:00
parent 3d48ba8178
commit 4b13de8af1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 3 deletions

View File

@ -314,6 +314,7 @@ export default class DHTCache extends EventEmitter {
} else if (type === Type.BOOTSTRAP_RESPONSE) { } else if (type === Type.BOOTSTRAP_RESPONSE) {
const { bootstrap } = decoded; const { bootstrap } = decoded;
this._bootstrapFrom(bootstrap); this._bootstrapFrom(bootstrap);
this.log.debug(`Bootstrap response received`);
} else if (type === Type.HEARTBEAT) { } else if (type === Type.HEARTBEAT) {
const { id: toId, signature, data: bufData } = decoded; const { id: toId, signature, data: bufData } = decoded;
@ -326,9 +327,7 @@ export default class DHTCache extends EventEmitter {
this._addEntityConnection(id, bufId as Buffer); this._addEntityConnection(id, bufId as Buffer);
this._setEntity(bufId as Buffer, { heartbeat: Date.now() }); this._setEntity(bufId as Buffer, { heartbeat: Date.now() });
this.log.debug( this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`);
`Bootstrap response received from ${bufId.toString("hex")}`
);
} }
} }