diff options
author | Sven Gothel <[email protected]> | 2020-07-27 04:39:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-27 04:39:58 +0200 |
commit | 69c2a8a45de2078cb00f9276efd76efc7704bc67 (patch) | |
tree | 39f8c21d03f3f607f0aa1d2f20f28b3bc3b98e02 /java | |
parent | cdc8d0bdd3fde0555ecf6465e03edf32ab91be5e (diff) |
GATTHandler::sendWithReply(): Disclose timeout value in error and exception on .. timeout
Diffstat (limited to 'java')
-rw-r--r-- | java/direct_bt/tinyb/DBTDevice.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java index 6b1bdd0e..65301141 100644 --- a/java/direct_bt/tinyb/DBTDevice.java +++ b/java/direct_bt/tinyb/DBTDevice.java @@ -593,8 +593,8 @@ public class DBTDevice extends DBTObject implements BluetoothDevice updateServiceCache(services); return services; } catch (final Throwable t) { + System.err.println("DBTDevice.getServices(): Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()+" on "+toString()); if(DEBUG) { - System.err.println("Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()); t.printStackTrace(); } } @@ -607,8 +607,8 @@ public class DBTDevice extends DBTObject implements BluetoothDevice try { return pingGATTImpl(); } catch (final Throwable t) { + System.err.println("DBTDevice.pingGATT(): Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()+" on "+toString()); if(DEBUG) { - System.err.println("Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()); t.printStackTrace(); } } |