Mercurial > code > home > repos > light9
diff bin/ascoltami2 @ 938:c2faa69099e6
asco: display update frequency and dim when updates stop. run slower updates on tablets and phones
Ignore-this: 2439d0f540c9eae00c4f18e26411c100
author | drewp@bigasterisk.com |
---|---|
date | Wed, 12 Jun 2013 23:47:12 +0000 |
parents | cca75951554a |
children | 78690efc866c |
line wrap: on
line diff
--- a/bin/ascoltami2 Wed Jun 12 19:46:26 2013 +0000 +++ b/bin/ascoltami2 Wed Jun 12 23:47:12 2013 +0000 @@ -42,6 +42,8 @@ help='show URI, like http://light9.bigasterisk.com/show/dance2008', default=showconfig.showUri()) parser.add_option("-v", "--verbose", action="store_true", help="logging.DEBUG") + parser.add_option("--twistedlog", action="store_true", + help="twisted logging") (options, args) = parser.parse_args() log.setLevel(logging.DEBUG if options.verbose else logging.INFO) @@ -51,6 +53,9 @@ graph = showconfig.getGraph() app = App(graph, URIRef(options.show)) + if options.twistedlog: + from twisted.python import log as twlog + twlog.startLogging(sys.stderr) reactor.listenTCP(networking.musicPlayer.port, makeWebApp(app)) log.info("listening on %s" % networking.musicPlayer.port) reactor.run()