dumpRequetParameters should use the logger from the servlet class, not from the parent.

This commit is contained in:
j2blake 2011-05-23 16:49:40 +00:00
parent 1176568eb5
commit 58dcccfa7e

View file

@ -225,11 +225,14 @@ public class VitroHttpServlet extends HttpServlet {
* A child class may call this if logging is set to debug level.
*/
protected void dumpRequestParameters(HttpServletRequest req) {
Log subclassLog = LogFactory.getLog(this.getClass());
@SuppressWarnings("unchecked")
Map<String, String[]> map = req.getParameterMap();
for (String key : map.keySet()) {
String[] values = map.get(key);
log.debug("Parameter '" + key + "' = "
subclassLog.debug("Parameter '" + key + "' = "
+ Arrays.deepToString(values));
}
}