Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 425:b284b8f9e535 stable-1.9.0-8
cleanup logging
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 31 Oct 2014 17:22:05 -0700 |
parents | 09c1d3aae3f0 |
children |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java Fri Oct 31 12:40:09 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java Fri Oct 31 17:22:05 2014 -0700 @@ -124,7 +124,7 @@ char[] len = forceRead(1); char[] packet = forceRead(len[0]); char cmd = packet[0]; - Log.i(TAG, String.format("received %d command", (int)cmd)); + Log.i(TAG, String.format("received %s", commands[cmd])); switch (cmd) { case MONITOR_CMD_SETFIELD: @@ -445,7 +445,6 @@ } public synchronized void setField(int l, int c, char[] data, int offset) { - Log.i(TAG, "setField()"); int len = data.length - offset; char[] da = new char[len]; System.arraycopy(data, offset, da, 0, len); @@ -464,7 +463,6 @@ } public synchronized void showUrl(char [] data, int offset) { - Log.i(TAG, "setField()"); char[] da = new char[data.length - offset]; System.arraycopy(data, offset, da, 0, data.length - offset); String url = new String(da); @@ -494,7 +492,7 @@ } public synchronized void screenWatch(int l, int c, int len) { - Log.i(TAG, "screenWatch()"); + Log.i(TAG, String.format("screenWatch(line %d, col %d, len %d)", l, c, len)); start_line = l; end_line = l; start_column = c; @@ -502,7 +500,7 @@ } public synchronized void depress(int vk_key) { - Log.i(TAG, String.format("depress() %d", vk_key)); + Log.i(TAG, String.format("depress(%d)", vk_key)); Integer x = keymap.get(new Integer(vk_key)); if (x != null) buffer.keyDepressed(x, ' ', 0); @@ -518,7 +516,6 @@ public synchronized void cursorRequest() { - Log.i(TAG, "cursorRequest()"); cursorMoved(CURSOR_REQUESTED); }