some extra logging.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 22 Mar 2006 22:00:54 +0000 (22:00 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 22 Mar 2006 22:00:54 +0000 (22:00 +0000)
crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java

index b9c103b7a7a46bcbef9e723e4a69f48b94515cf6..44132b5f5e88d42f93ee2d82f9f64f4bf2331aa8 100644 (file)
@@ -22,6 +22,8 @@ import java.util.Set;
 import java.util.TreeMap;
 import java.util.TreeSet;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.dom4j.DocumentFactory;
 import org.dom4j.Element;
 import org.wamblee.crawler.kiss.guide.Program;
@@ -33,6 +35,8 @@ import org.wamblee.crawler.kiss.guide.Program.RecordingResult;
  * in what order and makes decisions in case of conflicts.
  */
 public class ProgramActionExecutor {
+    
+    private static final Log LOG = LogFactory.getLog(ProgramActionExecutor.class);
 
     /**
      * A map of category name to a set of program. Useful for displaying the
@@ -74,6 +78,7 @@ public class ProgramActionExecutor {
      *            Program to record.
      */
     public void recordProgram(int aPriority, Program aProgram) {
+        LOG.info("priority = " + aPriority + ", program: " + aProgram);
         _showsToRecord.add(aProgram);
     }
 
@@ -86,6 +91,7 @@ public class ProgramActionExecutor {
      *            Program.
      */
     public void interestingProgram(String aCategory, Program aProgram) {
+        LOG.info("category = '" + aCategory + "', program: " + aProgram);
         Set<Program> programs = _interestingShows.get(aCategory);
         if (programs == null) {
             programs = new TreeSet<Program>(new Program.TimeSorter());