From: erik Date: Wed, 22 Mar 2006 22:00:54 +0000 (+0000) Subject: some extra logging. X-Git-Tag: BEFORE_MAVEN_MIGRATION~164 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=b32609e869c53140bbc02d3c34afe4bf34d61da1;p=utils some extra logging. --- diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java index b9c103b7..44132b5f 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java @@ -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 programs = _interestingShows.get(aCategory); if (programs == null) { programs = new TreeSet(new Program.TimeSorter());