diff bin/ascoltami2 @ 536:519adb4e539f

asco startup improvements Ignore-this: 41a4ce074e02e64166164813879380b
author drewp@bigasterisk.com
date Sun, 13 Jun 2010 07:56:06 +0000
parents 1156d3531327
children 94039df5cdd9
line wrap: on
line diff
--- a/bin/ascoltami2	Sat Jun 12 19:47:45 2010 +0000
+++ b/bin/ascoltami2	Sun Jun 13 07:56:06 2010 +0000
@@ -6,8 +6,8 @@
 from light9.ascoltami.webapp import makeApp
 from light9 import networking, showconfig
 
+logging.basicConfig()
 log = logging.getLogger()
-logging.basicConfig()
 gobject.threads_init()
 
 parser = optparse.OptionParser()
@@ -15,16 +15,14 @@
     help='show URI, like http://light9.bigasterisk.com/show/dance2008')
 parser.add_option("-v", "--verbose", action="store_true",
                   help="logging.DEBUG")
-graph = showconfig.getGraph()
 (options, args) = parser.parse_args()
 
-
 log.setLevel(logging.DEBUG if options.verbose else logging.INFO)
 
-graph = showconfig.getGraph()
 if not options.show:
     raise ValueError("missing --show http://...")
         
+graph = showconfig.getGraph()
 player = Player()
 
 # the cherrypy server would wedge when vidref pounds on it; this