summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-04 16:49:24 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-05 07:50:41 +0000
commit54ed269820fa503b2289327457324477bb24f6f9 (patch)
tree8c38509d40cd0f2b345cb029b7dde3bf575063a5 /server
parente6e752d4ad2d89c6df416fd7c17d6f18df0b33c5 (diff)
downloadvaadin-framework-54ed269820fa503b2289327457324477bb24f6f9.tar.gz
vaadin-framework-54ed269820fa503b2289327457324477bb24f6f9.zip
Log stack trace using fine when logging toString warnings
Change-Id: I4dbb5e84df78bad25fa90fc802309e433d516fd6
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/data/util/LegacyPropertyHelper.java5
-rw-r--r--server/src/com/vaadin/server/Constants.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/LegacyPropertyHelper.java b/server/src/com/vaadin/data/util/LegacyPropertyHelper.java
index 551d7223d6..76bd57117d 100644
--- a/server/src/com/vaadin/data/util/LegacyPropertyHelper.java
+++ b/server/src/com/vaadin/data/util/LegacyPropertyHelper.java
@@ -60,6 +60,11 @@ public class LegacyPropertyHelper implements Serializable {
getLogger().log(Level.WARNING,
Constants.WARNING_LEGACY_PROPERTY_TOSTRING,
p.getClass().getName());
+ if (getLogger().isLoggable(Level.FINE)) {
+ getLogger().log(Level.FINE,
+ "Strack trace for legacy toString to ease debugging",
+ new Throwable());
+ }
}
/**
diff --git a/server/src/com/vaadin/server/Constants.java b/server/src/com/vaadin/server/Constants.java
index cf1031dab2..2c041e3cf8 100644
--- a/server/src/com/vaadin/server/Constants.java
+++ b/server/src/com/vaadin/server/Constants.java
@@ -106,7 +106,8 @@ public interface Constants {
+ "\" to \"true\". To disable the legacy functionality, set \""
+ Constants.SERVLET_PARAMETER_LEGACY_PROPERTY_TOSTRING
+ "\" to false."
- + " (Note that your debugger might call toString() and trigger this message).";
+ + " (Note that your debugger might call toString() and trigger this message)."
+ + " To find out who is calling toString(), enable FINE level logging.";
static final String WARNING_UNKNOWN_LEGACY_PROPERTY_TOSTRING_VALUE = "Unknown value '{0}' for parameter "
+ Constants.SERVLET_PARAMETER_LEGACY_PROPERTY_TOSTRING