From 1c51aee606a3bd0f3e4dacfc448a91ae20c816fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Sat, 18 Jul 2026 22:05:19 +0200 Subject: [PATCH] Reduce log level for PersistenceManager deserialization problems to INFO As part of 892e14c11c2b3c753030c667883d75a0cc574224 the default detail level of the logging of PersistenceManager problems was reduced and is only retained if FINE lgging is enabled. On the other hand the log level for the shorted message was raised to WARNING from INFO. This causes the problem to become visible to the end user. Logs with level WARNING and an attached exception cause a visible notification via the chain: NbErrorManager -> NotifyExcPanel#notify -> NotifyExcPanel#shallNotify This in turn even shows the detailed message because the content of the serialization problem is attached to the exception via Exceptions.attachLocalizedMessage in XMLSettingsSupport. Closes: #9524 --- .../netbeans/core/windows/persistence/PersistenceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/core.windows/src/org/netbeans/core/windows/persistence/PersistenceManager.java b/platform/core.windows/src/org/netbeans/core/windows/persistence/PersistenceManager.java index 4379ace3e929..042870c0e8f7 100644 --- a/platform/core.windows/src/org/netbeans/core/windows/persistence/PersistenceManager.java +++ b/platform/core.windows/src/org/netbeans/core/windows/persistence/PersistenceManager.java @@ -598,7 +598,7 @@ private TopComponent getTopComponentPersistentForID(String stringId, boolean des private final Set warnedIDs = Collections.synchronizedSet(new HashSet<>()); /** Avoid printing dozens of warnings about the same ID in one IDE session. */ private Level warningLevelForDeserTC(String id) { - return warnedIDs.add(id) ? Level.WARNING : Level.FINE; + return warnedIDs.add(id) ? Level.INFO : Level.FINE; } /** @return Searches for TopComponent with given string id and returns