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.
This commit is contained in:
nik
2017-01-12 15:33:20 +03:00
parent 5f18356817
commit a40746a3a1
@@ -93,11 +93,11 @@ public class ModuleRootManagerImpl extends ModuleRootManager implements Disposab
entries = new ArrayList<>(myModelCreations.entrySet());
}
for (final Map.Entry<RootModelImpl, Throwable> 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();
}
}