From 996eb20556cf42a479d83e1c7326f2c3f914d9c6 Mon Sep 17 00:00:00 2001 From: ameba23 Date: Fri, 9 Apr 2021 15:12:56 +0200 Subject: [PATCH] Additional logging in KeyAgreementConnector --- .../bramble/keyagreement/KeyAgreementConnector.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bramble-core/src/main/java/org/briarproject/bramble/keyagreement/KeyAgreementConnector.java b/bramble-core/src/main/java/org/briarproject/bramble/keyagreement/KeyAgreementConnector.java index 23af3589e..5dce9c5b6 100644 --- a/bramble-core/src/main/java/org/briarproject/bramble/keyagreement/KeyAgreementConnector.java +++ b/bramble-core/src/main/java/org/briarproject/bramble/keyagreement/KeyAgreementConnector.java @@ -127,6 +127,7 @@ class KeyAgreementConnector { List> transports = new ArrayList<>(); for (TransportId id : PREFERRED_TRANSPORTS) { TransportDescriptor d = descriptors.get(id); + LOG.info("id: " + id + " d: " + d); Plugin p = pluginManager.getPlugin(id); if (d != null && p instanceof DuplexPlugin) { if (LOG.isLoggable(INFO)) @@ -137,6 +138,9 @@ class KeyAgreementConnector { // TODO: If we don't have any transports in common with the peer, // warn the user and give up (#1224) + if (transports.isEmpty()) { + LOG.info("No transports found"); + } if (!transports.isEmpty()) { byte[] commitment = remotePayload.getCommitment();