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

am: 6974295274

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

Change-Id: I9040fd2c07268209ef8d668965443f82a79fbcb0
This commit is contained in:
Ben Lin
2016-05-11 17:47:01 +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);