roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r956224 - in /roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment: HTMLSubsetPlugin.java LinkMarkupPlugin.java
Date Sat, 19 Jun 2010 13:39:47 GMT
Author: snoopdave
Date: Sat Jun 19 13:39:46 2010
New Revision: 956224

URL: http://svn.apache.org/viewvc?rev=956224&view=rev
Log:
added some logging to 2 comment plugins

Modified:
    roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/HTMLSubsetPlugin.java
    roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/LinkMarkupPlugin.java

Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/HTMLSubsetPlugin.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/HTMLSubsetPlugin.java?rev=956224&r1=956223&r2=956224&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/HTMLSubsetPlugin.java
(original)
+++ roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/HTMLSubsetPlugin.java
Sat Jun 19 13:39:46 2010
@@ -28,12 +28,11 @@ import org.apache.roller.weblogger.util.
  * Transforms the given String into a subset of HTML.
  */
 public class HTMLSubsetPlugin implements WeblogEntryCommentPlugin {
-    
-    private static final Log log = LogFactory.getLog(AutoformatPlugin.class);
+    private static final Log log = LogFactory.getLog(HTMLSubsetPlugin.class);
     
     
     public HTMLSubsetPlugin() {
-        // no-op
+        log.debug("Instantiating HTMLSubsetPlugin");
     }
     
     

Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/LinkMarkupPlugin.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/LinkMarkupPlugin.java?rev=956224&r1=956223&r2=956224&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/LinkMarkupPlugin.java
(original)
+++ roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/plugins/comment/LinkMarkupPlugin.java
Sat Jun 19 13:39:46 2010
@@ -21,6 +21,8 @@ package org.apache.roller.weblogger.busi
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.roller.weblogger.pojos.WeblogEntryComment;
 import org.apache.roller.weblogger.util.Utilities;
 
@@ -32,10 +34,14 @@ import org.apache.roller.weblogger.util.
  * Contributed by Matthew Montgomery.
  */
 public class LinkMarkupPlugin implements WeblogEntryCommentPlugin {
+    private static final Log log = LogFactory.getLog(LinkMarkupPlugin.class);
 
     private static final Pattern pattern = Pattern.compile(
-            "http[s]?://[^/][\\S]+", Pattern.CASE_INSENSITIVE);
+            "http[s]?://[^/][\\S]+", Pattern.CASE_INSENSITIVE);  
     
+    public LinkMarkupPlugin() {
+        log.debug("Instantiating LinkMarkupPlugin");
+    }
     
     /**
      * Unique identifier.  This should never change. 



Mime
View raw message