CEC: Enable log for non-user builds

This helps get better bugreports for dogfooding. Accompanying bug
will be kept track of to ensure the log is turned off before
shipping. See ag/175890 for reference.

Bug: 18471978
Change-Id: Ic67d64526fee3c52fee6c7f1e0201ead4ae6a3e7
This commit is contained in:
Jinsuk Kim
2014-11-21 10:43:51 +09:00
parent 8ae8500365
commit 4d1189e283

View File

@@ -17,6 +17,7 @@
package com.android.server.hdmi;
import android.annotation.Nullable;
import android.os.Build;
import android.os.SystemClock;
import android.util.Pair;
import android.util.Slog;
@@ -41,7 +42,7 @@ final class HdmiLogger {
// Logging duration for same error message.
private static final long ERROR_LOG_DURATTION_MILLIS = 20 * 1000; // 20s
private static final boolean DEBUG = false;
private static final boolean IS_USER_BUILD = "user".equals(Build.TYPE);
private static final ThreadLocal<HdmiLogger> sLogger = new ThreadLocal<>();
@@ -82,7 +83,7 @@ final class HdmiLogger {
}
private void debugInternal(String logMessage) {
if (!DEBUG) {
if (IS_USER_BUILD) {
return;
}
Slog.d(TAG, logMessage);