aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/measite/minidns/Client.java
diff options
context:
space:
mode:
authorFlorian Schmaus <flo@geekplace.eu>2014-06-08 13:54:51 +0200
committerFlorian Schmaus <flo@geekplace.eu>2014-06-08 13:54:51 +0200
commit315648382ec2b1fd59c36e388e0fae5d23b3b9a6 (patch)
treeae33cd11be740c5695810dfdcb55f7bd220c6896 /src/main/java/de/measite/minidns/Client.java
parentdefe51910153ed6a9aaf6becae9e6484bed609bd (diff)
Remove printStackTrace() calls
it's hard to assign those an app in the Android log. Better to use JUL.
Diffstat (limited to 'src/main/java/de/measite/minidns/Client.java')
-rw-r--r--src/main/java/de/measite/minidns/Client.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/measite/minidns/Client.java b/src/main/java/de/measite/minidns/Client.java
index e20c007e..b5712d24 100644
--- a/src/main/java/de/measite/minidns/Client.java
+++ b/src/main/java/de/measite/minidns/Client.java
@@ -14,6 +14,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Random;
+import java.util.logging.Level;
import java.util.logging.Logger;
import de.measite.minidns.Record.CLASS;
@@ -238,7 +239,7 @@ public class Client {
return server.toArray(new String[server.size()]);
}
} catch (IOException e) {
- e.printStackTrace();
+ LOGGER.log(Level.WARNING, "Exception in findDNSByExec", e);
}
return null;
}
@@ -283,7 +284,7 @@ public class Client {
}
} catch (Exception e) {
// we might trigger some problems this way
- e.printStackTrace();
+ LOGGER.log(Level.WARNING, "Exception in findDNSByReflection", e);
}
return null;
}