mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 09:17:35 +01:00
Main::setupLogging(): remove all default handlers instead of first one.
This commit is contained in:
parent
2ac33fd5e7
commit
fadb4e3353
@ -255,8 +255,10 @@ public class Main {
|
||||
|
||||
private static void setupLogging(boolean verbose) {
|
||||
Logger logger = Logger.getLogger("");
|
||||
for (Handler handler : logger.getHandlers()) {
|
||||
logger.removeHandler(handler);
|
||||
}
|
||||
Handler handler = new ConsoleHandler();
|
||||
logger.removeHandler(logger.getHandlers()[0]);
|
||||
logger.addHandler(handler);
|
||||
|
||||
if (verbose) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user