diff bin/curvecalc @ 590:0cf00fffd921

logging Ignore-this: a30c74ea5c5d2e0ca9ecb8ced1f7ef47
author drewp@bigasterisk.com
date Sun, 20 Jun 2010 05:04:09 +0000
parents ad5043f70fda
children b50e4d43dd3e
line wrap: on
line diff
--- a/bin/curvecalc	Sun Jun 20 04:53:38 2010 +0000
+++ b/bin/curvecalc	Sun Jun 20 05:04:09 2010 +0000
@@ -30,8 +30,6 @@
 import rdflib
 import logging
 log = logging.getLogger()
-logging.basicConfig(format="%(asctime)s %(levelname)-5s %(name)s %(filename)s:%(lineno)d: %(message)s")
-log.setLevel(logging.DEBUG)
 
 import run_local
 from light9 import Submaster, dmxclient, networking, showconfig, prof, Patch
@@ -396,6 +394,7 @@
 
 def add_subterms_for_song(graph, song, curveset, subterms, master):
     for st in graph.objects(song, L9['subterm']):
+        log.info("song %s has subterm %s", song, st)
         try:
             add_one_subterm(graph, graph.value(st, L9['sub']), curveset,
                             subterms, master, graph.value(st, L9['expression']))
@@ -469,6 +468,10 @@
                       help="ignore music and smooth_music curve files")
     opts, args = parser.parse_args()
 
+    logging.basicConfig(format="%(asctime)s %(levelname)-5s %(name)s %(filename)s:%(lineno)d: %(message)s")
+    log.setLevel(logging.INFO)
+
+
     try:
         song = URIRef(args[0])
     except IndexError: