diff --git a/org.envirocar.app/src/org/envirocar/app/bluetooth/BluetoothConnection.java b/org.envirocar.app/src/org/envirocar/app/bluetooth/BluetoothConnection.java index 60748ae1a..fc10cdfc1 100644 --- a/org.envirocar.app/src/org/envirocar/app/bluetooth/BluetoothConnection.java +++ b/org.envirocar.app/src/org/envirocar/app/bluetooth/BluetoothConnection.java @@ -176,6 +176,7 @@ public void run() { break; } catch (IOException e) { + logger.warn("Exception on bluetooth connection. Trying the fallback... : "+e.getMessage(), e); //try the fallback try { if (running) { @@ -186,7 +187,7 @@ public void run() { break; } } catch (FallbackException e1) { - logger.warn("Could not initialize FallbackBluetoothSocket classes.", e); + logger.warn("Could not initialize FallbackBluetoothSocket classes: "+e1.getMessage(), e1); } catch (InterruptedException e1) { logger.warn(e1.getMessage(), e1); } catch (IOException e1) { @@ -224,7 +225,7 @@ private boolean selectSocket() { bluetoothSocket = new NativeBluetoothSocket(tmp); return true; } catch (IOException e) { - logger.warn(e.getMessage() ,e); + logger.warn(e.getMessage(), e); } return false;