Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/io/flutter/logging/PluginLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,18 @@ public class PluginLogger {

public static void updateLogLevel() {
final Logger rootLoggerInstance = Logger.getInstance("io.flutter");
// Workaround for https://github.com/flutter/flutter-intellij/issues/8631
if (rootLoggerInstance.getClass().getName().equals("com.haulmont.jmixstudio.logger.JmixLoggerWrapper")) {
return;
}
try {
rootLoggerInstance.setLevel(FlutterSettings.getInstance().isVerboseLogging() ? LogLevel.ALL : LogLevel.INFO);
}
catch (Throwable e) {
// This can happen if the logger is wrapped by a 3rd party plugin that doesn't correctly implement setLevel.
// This can happen if the logger is wrapped by a 3rd party plugin that doesn't
// correctly implement setLevel.
// See https://github.com/flutter/flutter-intellij/issues/8631
Logger.getInstance(PluginLogger.class).warn("Failed to set log level", e);
Logger.getInstance(PluginLogger.class).info("Failed to set log level");
}
}

Expand Down