Mercurial > code > home > repos > light9
comparison bin/effecteval @ 1535:04f2e93f04e3
effecteval log startup error
Ignore-this: 6ab4a5a770c8557a2459072dde4ce17e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Wed, 10 May 2017 07:13:27 +0000 |
parents | ad90eb1f5493 |
children | 5d8009daea51 |
comparison
equal
deleted
inserted
replaced
1534:d4de13e83b7f | 1535:04f2e93f04e3 |
---|---|
287 class App(object): | 287 class App(object): |
288 def __init__(self, show, outputWhere): | 288 def __init__(self, show, outputWhere): |
289 self.show = show | 289 self.show = show |
290 self.outputWhere = outputWhere | 290 self.outputWhere = outputWhere |
291 self.graph = SyncedGraph(networking.rdfdb.url, "effectEval") | 291 self.graph = SyncedGraph(networking.rdfdb.url, "effectEval") |
292 self.graph.initiallySynced.addCallback(self.launch) | 292 self.graph.initiallySynced.addCallback(self.launch).addErrback(log.error) |
293 | 293 |
294 self.stats = scales.collection('/', | 294 self.stats = scales.collection('/', |
295 scales.PmfStat('sendLevels'), | 295 scales.PmfStat('sendLevels'), |
296 scales.PmfStat('getMusic'), | 296 scales.PmfStat('getMusic'), |
297 scales.PmfStat('evals'), | 297 scales.PmfStat('evals'), |
298 scales.PmfStat('sendOutput'), | 298 scales.PmfStat('sendOutput'), |
299 scales.IntStat('errors'), | 299 scales.IntStat('errors'), |
300 ) | 300 ) |
301 | 301 |
302 def launch(self, *args): | 302 def launch(self, *args): |
303 log.info('launch') | |
303 self.loop = makeEffectLoop(self.graph, self.stats, self.outputWhere) | 304 self.loop = makeEffectLoop(self.graph, self.stats, self.outputWhere) |
304 self.loop.startLoop() | 305 self.loop.startLoop() |
305 | 306 |
306 SFH = cyclone.web.StaticFileHandler | 307 SFH = cyclone.web.StaticFileHandler |
307 self.cycloneApp = cyclone.web.Application(handlers=[ | 308 self.cycloneApp = cyclone.web.Application(handlers=[ |