diff --git a/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java b/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java index 50b9d6216c16516f5db25505f7b3bc02cf2b9296..194cb4d1f4c8cf7580668de79c5f7dc93868722c 100644 --- a/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java +++ b/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java @@ -64,6 +64,8 @@ class BluetoothPlugin implements StreamPlugin { synchronized(this) { running = true; localDevice = LocalDevice.getLocalDevice(); + if(LOG.isLoggable(Level.INFO)) + LOG.info("Address " + localDevice.getBluetoothAddress()); } } catch(UnsatisfiedLinkError e) { // On Linux the user may need to install libbluetooth-dev diff --git a/components/net/sf/briar/plugins/socket/SocketPlugin.java b/components/net/sf/briar/plugins/socket/SocketPlugin.java index 15b48f4ef381ace19bda53b25ca0adbca698c617..c5001ef85f71d64b80ee531c17414530383bbac1 100644 --- a/components/net/sf/briar/plugins/socket/SocketPlugin.java +++ b/components/net/sf/briar/plugins/socket/SocketPlugin.java @@ -80,6 +80,10 @@ abstract class SocketPlugin implements StreamPlugin { } socket = ss; } + if(LOG.isLoggable(Level.INFO)) { + LOG.info("Listening on " + ss.getInetAddress().getHostAddress() + + ":" + ss.getLocalPort()); + } setLocalSocketAddress(ss.getLocalSocketAddress()); acceptContactConnections(ss); } diff --git a/test/net/sf/briar/plugins/StreamServerTest.java b/test/net/sf/briar/plugins/StreamServerTest.java index cfd5a22106f06fa22dd7bce770a756f488fb8f7d..5a03e9ec9655e644ea4a28da88da3735ad4badab 100644 --- a/test/net/sf/briar/plugins/StreamServerTest.java +++ b/test/net/sf/briar/plugins/StreamServerTest.java @@ -16,9 +16,6 @@ public abstract class StreamServerTest extends StreamTest { // Start the plugin System.out.println("Starting plugin"); plugin.start(); - // Print the local transport properties - System.out.println("Local transport properties:"); - System.out.println(callback.getLocalProperties()); // Wait for a connection System.out.println("Waiting for connection"); synchronized(callback) {