forked from Qortal/qortal
Improved error logging.
This commit is contained in:
parent
f5c9807a48
commit
c2d0c63db0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user