Skip to content

Commit e97ba7f

Browse files
authored
Convert inspector view to use PluginLogger (#8547)
Part of #8369
1 parent 3cc694f commit e97ba7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/io/flutter/view/InspectorView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import io.flutter.jxbrowser.InstallationFailedReason;
3434
import io.flutter.jxbrowser.JxBrowserManager;
3535
import io.flutter.jxbrowser.JxBrowserStatus;
36+
import io.flutter.logging.PluginLogger;
3637
import io.flutter.run.FlutterDevice;
3738
import io.flutter.run.daemon.DevToolsInstance;
3839
import io.flutter.run.daemon.DevToolsService;
@@ -61,7 +62,7 @@
6162
storages = {@Storage("$WORKSPACE_FILE$")}
6263
)
6364
public class InspectorView implements Disposable {
64-
private static final @NotNull Logger LOG = Logger.getInstance(InspectorView.class);
65+
private static final @NotNull Logger LOG = PluginLogger.createLogger(InspectorView.class);
6566

6667
public static final @NotNull String TOOL_WINDOW_ID = "Flutter Inspector";
6768

@@ -275,7 +276,7 @@ private void openInspectorWithDevTools(FlutterApp app,
275276

276277
// TODO(helinx): Restart DevTools server if there's an error.
277278
if (error != null) {
278-
LOG.error(error);
279+
FlutterUtils.error(LOG, "Error while starting DevTools server", error, true);
279280
viewUtils.presentLabel(toolWindow, DEVTOOLS_FAILED_LABEL);
280281
return;
281282
}

0 commit comments

Comments
 (0)