add in basic debug output

This commit is contained in:
Nathan Freitas 2015-02-04 11:55:23 -05:00
parent fb3e27bdcf
commit 91a72ef5d1
1 changed files with 4 additions and 4 deletions

View File

@ -672,24 +672,24 @@ public class ProxyServer implements Runnable {
public static void debug (String msg, String host, int port) public static void debug (String msg, String host, int port)
{ {
debug (msg); debug (msg + ": " + host + ":" + port);
} }
public static void debug (String msg, Exception e) public static void debug (String msg, Exception e)
{ {
debug (msg); Log.e("Proxy",msg,e);
} }
public static void debug (String msg, InetAddress addr, int port) public static void debug (String msg, InetAddress addr, int port)
{ {
debug (msg); debug (msg + ": " + addr.getHostAddress() + ": " + port);
} }
public static void debug (String msg, int type, String log) public static void debug (String msg, int type, String log)
{ {
debug (msg); debug (msg + " type:" + type + "=" + log);
} }
} }