roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r434086 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java
Date Wed, 23 Aug 2006 17:19:28 GMT
Author: agilliland
Date: Wed Aug 23 10:19:28 2006
New Revision: 434086

URL: http://svn.apache.org/viewvc?rev=434086&view=rev
Log:
do a warn, not error, when the feed servlet gets and exception for not finding a renderer.
 this is because the feed servlet actually takes direct input from the user for constructing
the renderer template id, so there are cases where bad input can cause and exception and we
don't want to flood the logs with unnecessary exceptions.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java?rev=434086&r1=434085&r2=434086&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FeedServlet.java
Wed Aug 23 10:19:28 2006
@@ -226,7 +226,7 @@
             renderer = RendererManager.getRenderer(template);
         } catch(Exception e) {
             // nobody wants to render my content :(
-            log.error("Couldn't find renderer for page "+pageId, e);
+            log.warn("Couldn't find renderer for page "+pageId);
             
             if(!response.isCommitted()) response.reset();
             response.sendError(HttpServletResponse.SC_NOT_FOUND);



Mime
View raw message