Redact personally identifiable information
This CL adds a utility function to redact personally identifiable
information from logs.
Change-Id: I5185dc436a22397dce55487a7531406097591720
diff --git a/src/com/android/telecomm/Call.java b/src/com/android/telecomm/Call.java
index 96d8374..2babb4e 100644
--- a/src/com/android/telecomm/Call.java
+++ b/src/com/android/telecomm/Call.java
@@ -23,6 +23,7 @@
import com.google.common.base.Preconditions;
import java.util.Date;
+import java.util.Locale;
import java.util.UUID;
/**
@@ -88,7 +89,8 @@
/** {@inheritDoc} */
@Override public String toString() {
- return "[" + mId + ", " + mState + ", " + mCallService.getComponentName() + "]";
+ return String.format(Locale.US, "[%s, %s, %s, %s]", mId, mState,
+ mCallService.getComponentName(), Log.pii(mHandle));
}
String getId() {