Skip to content

Commit

Permalink
add additional log on connection failed
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Aug 1, 2024
1 parent 72a43c3 commit ac8583b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/P2P/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ export class OceanP2P extends EventEmitter {
} catch (e) {
response.status.httpStatus = 404
response.status.error = 'Cannot connect to peer'
P2P_LOGGER.log(LOG_LEVELS_STR.LEVEL_ERROR, `Unable to connect to peer: ${peerId}`)
return response
}

Expand Down

0 comments on commit ac8583b

Please sign in to comment.