File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
termux-shared/src/main/java/com/termux/shared/logger Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ public static boolean isLogLevelValid(Integer logLevel) {
439
439
/** Check if custom log level is valid and >= {@link #CURRENT_LOG_LEVEL}. If custom log level is
440
440
* not valid then {@link #LOG_LEVEL_VERBOSE} must be >= {@link #CURRENT_LOG_LEVEL}. */
441
441
public static boolean shouldEnableLoggingForCustomLogLevel (Integer customLogLevel ) {
442
- if (customLogLevel == null || CURRENT_LOG_LEVEL = = LOG_LEVEL_OFF ) return false ;
442
+ if (customLogLevel == null || CURRENT_LOG_LEVEL <= LOG_LEVEL_OFF || customLogLevel < = LOG_LEVEL_OFF ) return false ;
443
443
customLogLevel = Logger .isLogLevelValid (customLogLevel ) ? customLogLevel : Logger .LOG_LEVEL_VERBOSE ;
444
444
return (customLogLevel >= CURRENT_LOG_LEVEL );
445
445
}
You can’t perform that action at this time.
0 commit comments