changeset 1023:e887763a37e2

Enabled debug logging of the xml document that is used in the MapViewer call (#323). gnv/trunk@1277 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 26 Nov 2010 10:04:22 +0000
parents 28a0628b11b0
children b45faa9315ce
files gnv/ChangeLog gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java gnv/src/main/webapp/WEB-INF/classes/log4j.properties
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <ingo@intevation.de>
+
+	  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 <ingo@intevation.de>
 
 	* src/test/java/de/intevation/gnv/artifactdatabase/client/ArtifactDatabaseClientTestCase.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());
--- 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
 

http://dive4elements.wald.intevation.org