Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5b14a89 authored by fionaxu's avatar fionaxu Committed by android-build-merger
Browse files

add pii support for Rlog am: a7ab821a

am: d42fa0d7

Change-Id: I6d337cd7edecfdf24634ccb8d556de9f738935d7
parents e116bcf7 d42fa0d7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -85,5 +85,13 @@ public final class Rlog {
        return Log.isLoggable(tag, level);
    }

    /**
     * Redact personally identifiable information for production users.
     * If log tag is loggable in verbose mode, return the original string, otherwise return XXX.
     */
    public static String pii(String tag, Object pii) {
        return (isLoggable(tag, Log.VERBOSE) ? String.valueOf(pii) : "XXX");
    }

}