|
23 | 23 | import com.intellij.util.download.FileDownloader;
|
24 | 24 | import com.teamdev.jxbrowser.browser.UnsupportedRenderingModeException;
|
25 | 25 | import com.teamdev.jxbrowser.engine.RenderingMode;
|
| 26 | +import io.flutter.logging.PluginLogger; |
26 | 27 | import io.flutter.settings.FlutterSettings;
|
27 | 28 | import io.flutter.utils.FileUtils;
|
28 | 29 | import io.flutter.utils.JxBrowserUtils;
|
@@ -81,7 +82,7 @@ else if (Objects.equals(info.getMajorVersion(), "2020")) {
|
81 | 82 | @NotNull
|
82 | 83 | private static final AtomicBoolean listeningForSetting = new AtomicBoolean(false);
|
83 | 84 | @NotNull
|
84 |
| - private static final Logger LOG = Logger.getInstance(JxBrowserManager.class); |
| 85 | + private static final Logger LOG = PluginLogger.createLogger(JxBrowserManager.class); |
85 | 86 | @NotNull
|
86 | 87 | public static CompletableFuture<JxBrowserStatus> installation = new CompletableFuture<>();
|
87 | 88 | @NotNull
|
@@ -261,7 +262,7 @@ public void setUp(@NotNull String projectName) {
|
261 | 262 | assert fileName != null;
|
262 | 263 | final String filePath = getFilePath(fileName);
|
263 | 264 | if (!fileUtils.deleteFile(filePath)) {
|
264 |
| - LOG.info(projectName + ": Existing file could not be deleted - " + filePath); |
| 265 | + LOG.info(projectName + ": Existing file could not be deleted - " + fileName); |
265 | 266 | }
|
266 | 267 | }
|
267 | 268 | downloadJxBrowser(fileNames);
|
@@ -311,7 +312,7 @@ public void run(@NotNull ProgressIndicator indicator) {
|
311 | 312 | ContainerUtil.getFirstItem(downloader.download(new File(DOWNLOAD_PATH)));
|
312 | 313 | final File file = download != null ? download.first : null;
|
313 | 314 | if (file != null) {
|
314 |
| - LOG.info(project.getName() + ": JxBrowser file downloaded: " + file.getAbsolutePath()); |
| 315 | + LOG.info(project.getName() + ": JxBrowser file downloaded: " + file.getName()); |
315 | 316 | }
|
316 | 317 | }
|
317 | 318 |
|
@@ -344,11 +345,11 @@ private void loadClasses(@NotNull String @NotNull [] fileNames) {
|
344 | 345 | fileUtils.loadPaths(this.getClass().getClassLoader(), paths);
|
345 | 346 | }
|
346 | 347 | catch (Exception ex) {
|
347 |
| - LOG.info("Failed to load JxBrowser file", ex); |
| 348 | + LOG.info("Failed to load JxBrowser paths"); |
348 | 349 | setStatusFailed(new InstallationFailedReason(FailureType.CLASS_LOAD_FAILED));
|
349 | 350 | return;
|
350 | 351 | }
|
351 |
| - LOG.info("Loaded JxBrowser files successfully: " + paths); |
| 352 | + LOG.info("Loaded JxBrowser files successfully"); |
352 | 353 |
|
353 | 354 | try {
|
354 | 355 | final Class<?> clazz = Class.forName("com.teamdev.jxbrowser.browser.UnsupportedRenderingModeException");
|
|
0 commit comments