mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-08 03:24:04 +08:00
Changed!: Changes introduced to disable/change logging in 60f37bde
now also apply to stdin and plugin command results
This commit is contained in:
@@ -436,4 +436,11 @@ public class Logger {
|
||||
return (logLevel != null && logLevel >= LOG_LEVEL_OFF && logLevel <= MAX_LOG_LEVEL);
|
||||
}
|
||||
|
||||
/** Check if custom log level is valid and >= {@link #CURRENT_LOG_LEVEL}. If custom log level is
|
||||
* not valid then {@link #LOG_LEVEL_VERBOSE} must be >= {@link #CURRENT_LOG_LEVEL}. */
|
||||
public static boolean shouldEnableLoggingForCustomLogLevel(Integer customLogLevel) {
|
||||
customLogLevel = Logger.isLogLevelValid(customLogLevel) ? customLogLevel: Logger.LOG_LEVEL_VERBOSE;
|
||||
return (customLogLevel >= CURRENT_LOG_LEVEL);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user