mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Improved error logging.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user