We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc779d2 commit 197979fCopy full SHA for 197979f
termux-shared/src/main/java/com/termux/shared/logger/Logger.java
@@ -439,6 +439,7 @@ public static boolean isLogLevelValid(Integer logLevel) {
439
/** Check if custom log level is valid and >= {@link #CURRENT_LOG_LEVEL}. If custom log level is
440
* not valid then {@link #LOG_LEVEL_VERBOSE} must be >= {@link #CURRENT_LOG_LEVEL}. */
441
public static boolean shouldEnableLoggingForCustomLogLevel(Integer customLogLevel) {
442
+ if (customLogLevel == null || CURRENT_LOG_LEVEL == LOG_LEVEL_OFF) return false;
443
customLogLevel = Logger.isLogLevelValid(customLogLevel) ? customLogLevel: Logger.LOG_LEVEL_VERBOSE;
444
return (customLogLevel >= CURRENT_LOG_LEVEL);
445
}
0 commit comments