Merge "Removed duplicate call to Metric log, and using private logging method." into nyc-dev

am: f2413b79c6

* commit 'f2413b79c6e8f0b23b84c08806cca9c8c01959b5':
  Removed duplicate call to Metric log, and using private logging method.

Change-Id: I497f0822da0d42d59b025623e61167aa5d157396
This commit is contained in:
Ben Lin
2016-05-11 17:44:05 +00:00
committed by android-build-merger

View File

@@ -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);