Skip to content
Snippets Groups Projects
Commit 1e69d267 authored by tykayn's avatar tykayn
Browse files

[fix] :bug: log message instead of throwing an error when 'Peer with zero...

[fix] :bug: log message instead of throwing an error when 'Peer with zero endpoints that is not already known'
parent 23f35f2e
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,8 @@ export class PeeringService {
let found = await this.dal.getPeerOrNull(thePeer.pubkey);
let peerEntityOld = PeerDTO.fromJSONObject(found || thePeer);
if (!found && thePeerDTO.endpoints.length === 0) {
throw "Peer with zero endpoints that is not already known";
let logMessage = "Peer with zero endpoints that is not already known";
this.server.logger.info(logMessage);
} else if (found) {
// Already existing peer
const sp2 = found.block.split("-");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment