From 14307cb77b35781e2e1099950f7bc9e36ecea11f Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 29 Oct 2017 02:14:43 +0100 Subject: [PATCH] ruffy: log a few things on error level instead of info. --- .../org/monkey/d/ruffy/ruffy/driver/BTConnection.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ruffyscripter/src/main/java/org/monkey/d/ruffy/ruffy/driver/BTConnection.java b/ruffyscripter/src/main/java/org/monkey/d/ruffy/ruffy/driver/BTConnection.java index 430460d409..fa7d23a697 100644 --- a/ruffyscripter/src/main/java/org/monkey/d/ruffy/ruffy/driver/BTConnection.java +++ b/ruffyscripter/src/main/java/org/monkey/d/ruffy/ruffy/driver/BTConnection.java @@ -125,7 +125,7 @@ public class BTConnection { tmp = device.createInsecureRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805f9b34fb")); } catch (IOException e) { - handler.log("socket create() failed: "+e.getMessage()); + handler.fail("socket create() failed: "+e.getMessage()); } if(tmp != null) { stopDiscoverable(); @@ -133,7 +133,7 @@ public class BTConnection { } else { - handler.log("failed the pump connection( retries left: "+retry+")"); + handler.fail("failed the pump connection( retries left: "+retry+")"); try { Thread.sleep(100); } catch (InterruptedException e) { @@ -160,7 +160,7 @@ public class BTConnection { currentOutput = currentConnection.getOutputStream(); } catch (IOException e) { //e.printStackTrace(); - handler.fail("no connection possible"); + handler.fail("no connection possible: " + e.getMessage()); //?????????? @@ -241,9 +241,9 @@ public class BTConnection { this.currentInput=null; this.currentOutput=null; this.currentConnection=null; - handler.log("closed current Connection"); + handler.fail("closed current Connection"); } - handler.log("got new Connection: "+newConnection); + handler.fail("got new Connection: "+newConnection); this.currentConnection = newConnection; if(newConnection!=null) {