roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r985688 - /roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java
Date Sun, 15 Aug 2010 15:28:36 GMT
Author: snoopdave
Date: Sun Aug 15 15:28:34 2010
New Revision: 985688

URL: http://svn.apache.org/viewvc?rev=985688&view=rev
Log:
make planet a little less noisy on bad feeds

Modified:
    roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java

Modified: roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java
URL: http://svn.apache.org/viewvc/roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java?rev=985688&r1=985687&r2=985688&view=diff
==============================================================================
--- roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java
(original)
+++ roller/trunk/planet-business/src/main/java/org/apache/roller/planet/business/updater/SingleThreadedFeedUpdater.java
Sun Aug 15 15:28:34 2010
@@ -202,10 +202,20 @@ public class SingleThreadedFeedUpdater i
                     cause = cause.getCause();
                 }
                 
-                log.warn("Error updating subscription - "+sub.getFeedURL(), cause);
+                if (log.isDebugEnabled()) {
+                    log.debug("Error updating subscription - "+sub.getFeedURL(), cause);
+                } else {
+                    log.warn("Error updating subscription - "+sub.getFeedURL()
+                        + " turn on debug logging for more info");
+                }
                 
             } catch(Exception ex) {
-                log.warn("Error updating subscription - "+sub.getFeedURL(), ex);
+                if (log.isDebugEnabled()) {
+                    log.warn("Error updating subscription - "+sub.getFeedURL(), ex);
+                } else {
+                    log.warn("Error updating subscription - "+sub.getFeedURL()
+                        + " turn on debug logging for more info");
+                }
             }
         }
     }



Mime
View raw message