*Fix log messages
This commit is contained in:
parent
3d48ba8178
commit
4b13de8af1
|
@ -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")}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue