fix(cli): fix and add debug log messages in initialization phase (PR #1362)
* Fix log level settings in the CLI * Add log messages in initialization phase
This commit is contained in:
@@ -54,7 +54,7 @@ public class LogHelper {
|
||||
Logger rootLogger = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
|
||||
rootLogger.setLevel(logLevel.getLevel());
|
||||
|
||||
if (logLevel != LogLevelEnum.QUIET) {
|
||||
if (logLevel == LogLevelEnum.PROGRESS) {
|
||||
// show progress for all levels except quiet
|
||||
setLevelForClass(JadxCLI.class, Level.INFO);
|
||||
setLevelForClass(JadxDecompiler.class, Level.INFO);
|
||||
|
||||
@@ -128,6 +128,7 @@ public final class JadxDecompiler implements Closeable {
|
||||
loadedInputs.add(loadResult);
|
||||
}
|
||||
}
|
||||
LOG.debug("Loaded using {} inputs plugin", loadedInputs.size());
|
||||
}
|
||||
|
||||
private void reset() {
|
||||
|
||||
@@ -39,6 +39,7 @@ public class JadxPluginManager {
|
||||
ServiceLoader<JadxPlugin> jadxPlugins = ServiceLoader.load(JadxPlugin.class);
|
||||
for (JadxPlugin plugin : jadxPlugins) {
|
||||
addPlugin(plugin);
|
||||
LOG.debug("Loading plugin: {}", plugin.getPluginInfo().getPluginId());
|
||||
}
|
||||
resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user