Improved error logging.

This commit is contained in:
CalDescent 2021-06-19 20:31:04 +01:00
parent f5c9807a48
commit c2d0c63db0

View File

@ -172,7 +172,7 @@ public class DataResource {
Peer targetPeer = peers.stream().filter(peer -> peer.getResolvedAddress().toString().contains(resolvedAddress.toString())).findFirst().orElse(null);
if (targetPeer == null) {
LOGGER.error("Peer not connected");
LOGGER.info("Peer {} isn't connected", targetPeerAddress);
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.INVALID_DATA);
}