Mercurial > code > home > repos > light9
changeset 590:0cf00fffd921
logging
Ignore-this: a30c74ea5c5d2e0ca9ecb8ced1f7ef47
author | drewp@bigasterisk.com |
---|---|
date | Sun, 20 Jun 2010 05:04:09 +0000 |
parents | a87004506a45 |
children | 58e2e6ca1ff1 |
files | bin/curvecalc light9/Submaster.py |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
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:
--- a/light9/Submaster.py Sun Jun 20 04:53:38 2010 +0000 +++ b/light9/Submaster.py Sun Jun 20 05:04:09 2010 +0000 @@ -56,7 +56,7 @@ 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: