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

Commit 6e5a77b2 authored by Ben Lin's avatar Ben Lin
Browse files

Removed duplicate call to Metric log, and using private logging method.

Bug: 28554140
Change-Id: I071c50ef5b51de65e71b85453cf83acae5ad6af7
parent 0a2c49a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -544,12 +544,11 @@ public final class Metrics {

    public static void logInvalidScopedAccessRequest(Context context,
            @InvalidScopedAccess String type) {
        MetricsLogger.count(context, type, 1);
        switch (type) {
            case SCOPED_DIRECTORY_ACCESS_INVALID_ARGUMENTS:
            case SCOPED_DIRECTORY_ACCESS_INVALID_DIRECTORY:
            case SCOPED_DIRECTORY_ACCESS_ERROR:
                MetricsLogger.count(context, type, 1);
                logCount(context, type);
                break;
            default:
                Log.wtf(TAG, "invalid InvalidScopedAccess: " + type);