summaryrefslogtreecommitdiffstats
path: root/keystore/java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-31 20:15:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-31 20:15:15 -0700
commitb86bad9493a331a09dd765bc6e725c0aec969ff6 (patch)
tree0586bc37ed1a7342835fd9398c6a31246f6d24d6 /keystore/java
parent3159e3260e7e380469b5af353cc8af17525dbf20 (diff)
parente81f51f44b4cfb8316de1d206038414ee6f6e96b (diff)
downloadframeworks_base-b86bad9493a331a09dd765bc6e725c0aec969ff6.zip
frameworks_base-b86bad9493a331a09dd765bc6e725c0aec969ff6.tar.gz
frameworks_base-b86bad9493a331a09dd765bc6e725c0aec969ff6.tar.bz2
Merge change 9438 into donut
* changes: Change some log.i to log.d.
Diffstat (limited to 'keystore/java')
-rw-r--r--keystore/java/android/security/ServiceCommand.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/keystore/java/android/security/ServiceCommand.java b/keystore/java/android/security/ServiceCommand.java
index 6178d59..dddf654 100644
--- a/keystore/java/android/security/ServiceCommand.java
+++ b/keystore/java/android/security/ServiceCommand.java
@@ -49,6 +49,8 @@ public class ServiceCommand {
public static final int BUFFER_LENGTH = 4096;
+ private static final boolean DBG = true;
+
private String mServiceName;
private String mTag;
private InputStream mIn;
@@ -59,7 +61,7 @@ public class ServiceCommand {
if (mSocket != null) {
return true;
}
- Log.i(mTag, "connecting...");
+ if (DBG) Log.d(mTag, "connecting...");
try {
mSocket = new LocalSocket();
@@ -78,7 +80,7 @@ public class ServiceCommand {
}
private void disconnect() {
- Log.i(mTag,"disconnecting...");
+ if (DBG) Log.d(mTag,"disconnecting...");
try {
if (mSocket != null) mSocket.close();
} catch (IOException ex) { }
@@ -105,7 +107,7 @@ public class ServiceCommand {
}
off += count;
} catch (IOException ex) {
- Log.e(mTag,"read exception");
+ Log.e(mTag,"read exception", ex);
break;
}
}
@@ -156,7 +158,7 @@ public class ServiceCommand {
mOut.write(buf, 0, 8);
mOut.write(data, 0, len);
} catch (IOException ex) {
- Log.e(mTag,"write error");
+ Log.e(mTag,"write error", ex);
disconnect();
return false;
}