mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
+5
-5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user