Change-Id: I4dbb5e84df78bad25fa90fc802309e433d516fd6
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());
+ }
}
/**
+ "\" 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