Author: markt Date: Fri Sep 2 15:04:24 2011 New Revision: 1164569 URL: http://svn.apache.org/viewvc?rev=1164569&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51758 Align the digester logger names with the class name else users will never be able to figure out how to stop it logging
Modified: tomcat/tc7.0.x/trunk/ (props changed) tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Propchange: tomcat/tc7.0.x/trunk/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Sep 2 15:04:24 2011 @@ -1 +1 @@ -/tomcat/trunk:1156171,1156276,1156304,1156530,1156602,1157015,1157018,1157151,1157198,1157204,1157810,1157832,1157834,1157847,1157908,1157939,1158155,1158160,1158176,1158195,1158198-1158199,1158227,1158331,1158334-1158335,1160347,1160592,1160611,1160619,1160626,1160639,1160652,1160720-1160721,1160772,1160774,1160776,1161303,1161310,1161322,1161339,1161486,1161540,1161549,1161584,1162082,1162149,1162169,1162721,1162769,1162836,1162932,1163630,1164419,1164438,1164469,1164480 +/tomcat/trunk:1156171,1156276,1156304,1156530,1156602,1157015,1157018,1157151,1157198,1157204,1157810,1157832,1157834,1157847,1157908,1157939,1158155,1158160,1158176,1158195,1158198-1158199,1158227,1158331,1158334-1158335,1160347,1160592,1160611,1160619,1160626,1160639,1160652,1160720-1160721,1160772,1160774,1160776,1161303,1161310,1161322,1161339,1161486,1161540,1161549,1161584,1162082,1162149,1162169,1162721,1162769,1162836,1162932,1163630,1164419,1164438,1164469,1164480,1164567 Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java?rev=1164569&r1=1164568&r2=1164569&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java Fri Sep 2 15:04:24 2011 @@ -330,14 +330,14 @@ public class Digester extends DefaultHan * The Log to which most logging calls will be made. */ protected Log log = - LogFactory.getLog("org.apache.commons.digester.Digester"); + LogFactory.getLog("org.apache.tomcat.util.digester.Digester"); /** * The Log to which all SAX event related logging calls will be made. */ protected Log saxLog = - LogFactory.getLog("org.apache.commons.digester.Digester.sax"); + LogFactory.getLog("org.apache.tomcat.util.digester.Digester.sax"); /** Stacks used for interrule communication, indexed by name String */ @@ -2530,8 +2530,8 @@ public class Digester extends DefaultHan return; } - log = LogFactory.getLog("org.apache.commons.digester.Digester"); - saxLog = LogFactory.getLog("org.apache.commons.digester.Digester.sax"); + log = LogFactory.getLog("org.apache.tomcat.util.digester.Digester"); + saxLog = LogFactory.getLog("org.apache.tomcat.util.digester.Digester.sax"); // Perform lazy configuration as needed initialize(); // call hook method for subclasses that want to be initialized once only Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1164569&r1=1164568&r2=1164569&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original) +++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Fri Sep 2 15:04:24 2011 @@ -77,6 +77,12 @@ and request listeners are now handled in the StandardHostValve to ensure they wrap all Context level activity. (markt) </fix> + <fix> + <bug>51758</bug>: The digester (used for processing XMl files) used the + logger name <code>org.apache.commons.digester.Digester</code> rather + than the expected <code>org.apache.tomcat.util.digester.Digester</code>. + The digester has been changed to use the expected logger name. (markt) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org