Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 54ad777

Browse files
authoredJul 9, 2019
Fixed logLevel filter bug so that filter now works as expected. (#9460) (#9717)
1 parent b1cb0d9 commit 54ad777

File tree

1 file changed

+6
-6
lines changed
  • shell/platform/android/io/flutter

1 file changed

+6
-6
lines changed
 

‎shell/platform/android/io/flutter/Log.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,37 @@ public static void setLogLevel(int logLevel) {
2626
}
2727

2828
public static void v(@NonNull String tag, @NonNull String message) {
29-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.VERBOSE) {
29+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.VERBOSE) {
3030
android.util.Log.v(tag, message);
3131
}
3232
}
3333

3434
public static void v(@NonNull String tag, @NonNull String message, @NonNull Throwable tr) {
35-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.VERBOSE) {
35+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.VERBOSE) {
3636
android.util.Log.v(tag, message, tr);
3737
}
3838
}
3939

4040
public static void i(@NonNull String tag, @NonNull String message) {
41-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.INFO) {
41+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.INFO) {
4242
android.util.Log.i(tag, message);
4343
}
4444
}
4545

4646
public static void i(@NonNull String tag, @NonNull String message, @NonNull Throwable tr) {
47-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.INFO) {
47+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.INFO) {
4848
android.util.Log.i(tag, message, tr);
4949
}
5050
}
5151

5252
public static void d(@NonNull String tag, @NonNull String message) {
53-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.DEBUG) {
53+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.DEBUG) {
5454
android.util.Log.d(tag, message);
5555
}
5656
}
5757

5858
public static void d(@NonNull String tag, @NonNull String message, @NonNull Throwable tr) {
59-
if (BuildConfig.DEBUG && logLevel >= android.util.Log.DEBUG) {
59+
if (BuildConfig.DEBUG && logLevel <= android.util.Log.DEBUG) {
6060
android.util.Log.d(tag, message, tr);
6161
}
6262
}

0 commit comments

Comments
 (0)
This repository has been archived.