# HG changeset patch # User drewp@bigasterisk.com # Date 2010-06-20 05:04:09 # Node ID 0cf00fffd921cf911693f37a9de0b8544250db16 # Parent a87004506a4571db3b8b20ef1593df266a5bd7ca logging Ignore-this: a30c74ea5c5d2e0ca9ecb8ced1f7ef47 diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -30,8 +30,6 @@ from rdflib.Graph import Graph 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 createSubtermGraph(song, subterms): 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 @@ def main(): 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: diff --git a/light9/Submaster.py b/light9/Submaster.py --- a/light9/Submaster.py +++ b/light9/Submaster.py @@ -56,7 +56,7 @@ class Submaster: self.reload(quiet=True, graph=graph) if not self.temporary: dispatcher.connect(self.reload, 'reload all subs') - log.info("%s initial levels %s", self.name, self.levels) + log.debug("%s initial levels %s", self.name, self.levels) def reload(self, quiet=False, graph=None): if self.temporary: