|
24 | 24 | import com.intellij.xdebugger.impl.XDebugSessionImpl; |
25 | 25 | import com.jetbrains.lang.dart.DartFileType; |
26 | 26 | import io.flutter.bazel.WorkspaceCache; |
| 27 | +import io.flutter.logging.PluginLogger; |
27 | 28 | import io.flutter.sdk.FlutterSdk; |
28 | 29 | import io.flutter.sdk.FlutterSdkVersion; |
| 30 | +import io.flutter.settings.FlutterSettings; |
29 | 31 | import io.flutter.utils.OpenApiUtils; |
30 | 32 | import io.flutter.vmService.frame.DartAsyncMarkerFrame; |
31 | 33 | import io.flutter.vmService.frame.DartVmServiceEvaluator; |
|
88 | 90 | import java.util.regex.Pattern; |
89 | 91 |
|
90 | 92 | public class VmServiceWrapper implements Disposable { |
91 | | - @NotNull private static final Logger LOG = Logger.getInstance(VmServiceWrapper.class.getName()); |
| 93 | + @NotNull private static final Logger LOG = PluginLogger.createLogger(VmServiceWrapper.class); |
92 | 94 |
|
93 | 95 | private static final long RESPONSE_WAIT_TIMEOUT = 3000; // millis |
94 | 96 |
|
@@ -560,7 +562,7 @@ public void addBreakpointWithVmService(@NotNull String isolateId, |
560 | 562 | int line = position.getLine() + 1; |
561 | 563 |
|
562 | 564 | String resolvedUri = getResolvedUri(position); |
563 | | - LOG.info("Computed resolvedUri: " + resolvedUri); |
| 565 | + if (FlutterSettings.getInstance().isFilePathLoggingEnabled()) LOG.info("Computed resolvedUri: " + resolvedUri); |
564 | 566 | List<String> resolvedUriList = List.of(percentEscapeUri(resolvedUri)); |
565 | 567 |
|
566 | 568 | CanonicalBreakpoint canonicalBreakpoint = |
@@ -636,7 +638,7 @@ private String getResolvedUri(@NotNull XSourcePosition position) { |
636 | 638 | WorkspaceCache.getInstance(session.getProject()).isBazel() ? position.getFile() : position.getFile().getCanonicalFile(); |
637 | 639 | assert file != null; |
638 | 640 | String url = file.getUrl(); |
639 | | - LOG.info("in getResolvedUri. url: " + url); |
| 641 | + if (FlutterSettings.getInstance().isFilePathLoggingEnabled()) LOG.info("in getResolvedUri. url: " + url); |
640 | 642 |
|
641 | 643 | if (WorkspaceCache.getInstance(myDebugProcess.getSession().getProject()).isBazel()) { |
642 | 644 | String root = WorkspaceCache.getInstance(myDebugProcess.getSession().getProject()).get().getRoot().getPath(); |
|
0 commit comments