You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2022/04/15 13:12:44 UTC
[wicket] branch wicket-9.x updated: - Add Resource key to be logged on Warning in Localizer.java (#508)
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-9.x by this push:
new d59f265761 - Add Resource key to be logged on Warning in Localizer.java (#508)
d59f265761 is described below
commit d59f265761c972ecb0d419b7ca10c9ba0d9c843b
Author: Johannes Renoth <re...@users.noreply.github.com>
AuthorDate: Fri Apr 15 15:11:58 2022 +0200
- Add Resource key to be logged on Warning in Localizer.java (#508)
(cherry picked from commit b32846ae2730955e2392dcd3f8eb9ea6aad9c991)
---
wicket-core/src/main/java/org/apache/wicket/Localizer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wicket-core/src/main/java/org/apache/wicket/Localizer.java b/wicket-core/src/main/java/org/apache/wicket/Localizer.java
index 9ec5059d8d..dbd59a05e3 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Localizer.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Localizer.java
@@ -334,7 +334,7 @@ public class Localizer
"Tried to retrieve a localized string for a component that has not yet been added to the page. "
+ "This can sometimes lead to an invalid or no localized resource returned. "
+ "Make sure you are not calling Component#getString() inside your Component's constructor. "
- + "Offending component: {}", component);
+ + "Offending component: {} - Resource key: {}", component, key);
}
}