# HG changeset patch # User Ingo Weinzierl # Date 1290765862 0 # Node ID e887763a37e23b5559d2a299176fc397c16f8d87 # Parent 28a0628b11b0ceab5f7e1fcd7f47300561973619 Enabled debug logging of the xml document that is used in the MapViewer call (#323). gnv/trunk@1277 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 28a0628b11b0 -r e887763a37e2 gnv/ChangeLog --- a/gnv/ChangeLog Tue Nov 02 17:15:08 2010 +0000 +++ b/gnv/ChangeLog Fri Nov 26 10:04:22 2010 +0000 @@ -1,3 +1,14 @@ +2010-11-26 Ingo Weinzierl + + ISSUE #323 + + * src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java: + Log the xml document of the MapViewer call (DEBUG). + + * src/main/webapp/WEB-INF/classes/log4j.properties: Enabled the DEBUG + output of the MapViewerCallAction logging, so that the MapViewer call xml + document can be found in the log file. + 2010-11-02 Ingo Weinzierl * src/test/java/de/intevation/gnv/artifactdatabase/client/ArtifactDatabaseClientTestCase.java, diff -r 28a0628b11b0 -r e887763a37e2 gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java --- a/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java Tue Nov 02 17:15:08 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java Fri Nov 26 10:04:22 2010 +0000 @@ -64,6 +64,7 @@ log.debug("MapViewerCallAction.execute"); InputStream inputStream = null; String documentvalue = request.getParameter("document"); + log.debug("REQUEST DOCUMENT: " + documentvalue); if (documentvalue != null){ documentvalue = documentvalue.trim(); inputStream = new ByteArrayInputStream(documentvalue.getBytes()); diff -r 28a0628b11b0 -r e887763a37e2 gnv/src/main/webapp/WEB-INF/classes/log4j.properties --- a/gnv/src/main/webapp/WEB-INF/classes/log4j.properties Tue Nov 02 17:15:08 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/classes/log4j.properties Fri Nov 26 10:04:22 2010 +0000 @@ -1,6 +1,9 @@ #### Log just errors and warnings to a file. log4j.rootLogger=WARN, BSH +## The following line enables the output of the MapViewer call document. +log4j.category.de.intevation.gnv.action.mapviewer.MapViewerCallAction=DEBUG + #### Log everything to a file. #log4j.rootLogger=DEBUG, BSH