Skip to content

Commit

Permalink
adjust exception logging on bluetooth connection
Browse files Browse the repository at this point in the history
  • Loading branch information
matthesrieke committed May 8, 2014
1 parent 76378d0 commit 16df9e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 16df9e5

Please sign in to comment.