Upate logging to use LogUtil
This CL replaces all calls to Log.* with calls to LogUtil.*.
Bug: 13172967
Change-Id: I649e2c4f74f9d74d046eddc777e192a066882520
diff --git a/src/com/android/telecomm/Call.java b/src/com/android/telecomm/Call.java
index e61d5ec..96d8374 100644
--- a/src/com/android/telecomm/Call.java
+++ b/src/com/android/telecomm/Call.java
@@ -19,7 +19,6 @@
import android.telecomm.CallInfo;
import android.telecomm.CallState;
import android.telecomm.ICallServiceSelector;
-import android.util.Log;
import com.google.common.base.Preconditions;
@@ -32,8 +31,6 @@
* connected etc).
*/
final class Call {
- private static final String TAG = Call.class.getSimpleName();
-
/** Unique identifier for the call as a UUID string. */
private final String mId;
@@ -189,9 +186,9 @@
*/
void disconnect() {
if (mCallService == null) {
- Log.w(TAG, "disconnect() request on a call without a call service.");
+ Log.w(this, "disconnect() request on a call without a call service.");
} else {
- Log.i(TAG, "Send disconnect to call service for call with id " + mId);
+ Log.i(this, "Send disconnect to call service for call with id %s", mId);
// The call isn't officially disconnected until the call service confirms that the call
// was actually disconnected. Only then is the association between call and call service
// severed, see {@link CallsManager#markCallAsDisconnected}.
@@ -247,7 +244,7 @@
return true;
}
- Log.i(TAG, "Request to " + actionName + " a non-ringing call " + this);
+ Log.i(this, "Request to %s a non-ringing call %s", actionName, this);
return false;
}