From a40746a3a1a2b0d8fc284e15e4a77d85d43d6ffd Mon Sep 17 00:00:00 2001 From: nik Date: Thu, 12 Jan 2017 15:32:45 +0300 Subject: [PATCH] logging: print message about not disposed RootModel to log instead of stderr Otherwise you won't see these messages if you run IDE not from console. --- .../openapi/roots/impl/ModuleRootManagerImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleRootManagerImpl.java b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleRootManagerImpl.java index 910bf69be095..c976de1489f8 100644 --- a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleRootManagerImpl.java +++ b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleRootManagerImpl.java @@ -93,11 +93,11 @@ public class ModuleRootManagerImpl extends ModuleRootManager implements Disposab entries = new ArrayList<>(myModelCreations.entrySet()); } for (final Map.Entry entry : entries) { - System.err.println("***********************************************************************************************"); - System.err.println("*** R O O T M O D E L N O T D I S P O S E D ***"); - System.err.println("***********************************************************************************************"); - System.err.println("Created at:"); - entry.getValue().printStackTrace(System.err); + LOG.warn("\n" + + "***********************************************************************************************\n" + + "*** R O O T M O D E L N O T D I S P O S E D ***\n" + + "***********************************************************************************************\n" + + "Created at:", entry.getValue()); entry.getKey().dispose(); } }