mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Log the server socket details to make it easier to run manual tests
between two machines.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user