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/OutgoingCallsManager.java b/src/com/android/telecomm/OutgoingCallsManager.java
index 0a41c08..f50f765 100644
--- a/src/com/android/telecomm/OutgoingCallsManager.java
+++ b/src/com/android/telecomm/OutgoingCallsManager.java
@@ -17,7 +17,6 @@
package com.android.telecomm;
import android.telecomm.ICallServiceSelector;
-import android.util.Log;
import com.google.common.collect.Maps;
@@ -33,8 +32,6 @@
* can simply call into this class instead of individual OutgoingCallProcessors.
*/
final class OutgoingCallsManager {
- private static final String TAG = OutgoingCallsManager.class.getSimpleName();
-
private final Switchboard mSwitchboard;
/**
@@ -60,7 +57,7 @@
void placeCall(
Call call, Set<CallServiceWrapper> callServices, List<ICallServiceSelector> selectors) {
- Log.i(TAG, "Placing an outgoing call (" + call.getId() + ")");
+ Log.i(this, "Placing an outgoing call (%s)", call.getId());
// Create the processor for this (outgoing) call and store it in a map such that call
// attempts can be aborted etc.
@@ -84,7 +81,7 @@
if (processor == null) {
// Shouldn't happen, so log a wtf if it does.
- Log.wtf(TAG, "Received an unexpected placed-call notification.");
+ Log.wtf(this, "Received an unexpected placed-call notification.");
} else {
processor.handleSuccessfulCallAttempt();
}
@@ -105,7 +102,7 @@
// TODO(santoscordon): Consider combining the check here and in handleSuccessfulCallAttempt.
if (processor == null) {
// Shouldn't happen, so log a wtf if it does.
- Log.wtf(TAG, "Received an unexpected failed-call notification.");
+ Log.wtf(this, "Received an unexpected failed-call notification.");
} else {
processor.handleFailedCallAttempt(reason);
}