changeset 319:2193eab0650b

add startup logging to curvecalc
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 16 Jun 2006 19:34:30 +0000
parents fcf9755d9a75
children fd06667e00e1
files bin/curvecalc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/curvecalc	Tue Mar 20 02:39:09 2007 +0000
+++ b/bin/curvecalc	Fri Jun 16 19:34:30 2006 +0000
@@ -12,6 +12,10 @@
 from twisted.internet import reactor,tksupport
 import twisted
 from twisted.web.xmlrpc import Proxy
+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
@@ -321,6 +325,7 @@
 except IndexError:
     raise SystemExit("song name is required, e.g. '05-mix'")
 
+log.debug("music")
 music=Music()
 
 zc = Zoomcontrol(root)
@@ -347,6 +352,7 @@
 add_subterms_from_file(showconfig.subtermsForSong(song),
                        curveset, subterms, root, ssv)
 
+log.debug("output")
 out = Output(subterms, music)
 
 def savekey(*args):
@@ -373,6 +379,7 @@
 root.bind("<Destroy>",lambda ev: reactor.stop)
 root.protocol('WM_DELETE_WINDOW', reactor.stop)
 tksupport.install(root,ms=20)
+log.debug("run")
 if 0:
     sys.path.append("/home/drewp/projects/cuisine/pour")
     from utils import runstats