Merge "CEC: Enable log for non-user builds" into lmp-mr1-dev
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user