Mercurial > code > home > repos > light9
changeset 1169:1104c384d368
more debug logs
Ignore-this: 95da12fcaaacef2d6d32a0ec113ff88a
author | drewp@bigasterisk.com |
---|---|
date | Sun, 15 Jun 2014 04:23:42 +0000 |
parents | 5c2678c189d5 |
children | a251c7e12f3d |
files | bin/keyboardcomposer light9/effecteval/effectloop.py |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/keyboardcomposer Sun Jun 15 04:23:28 2014 +0000 +++ b/bin/keyboardcomposer Sun Jun 15 04:23:42 2014 +0000 @@ -551,6 +551,7 @@ break self.kc = kc + log.info('found sliders on %s', dev) def valueIn(self, name, value): kc = self.kc if name.startswith("slider"): @@ -633,4 +634,4 @@ # prof.watchPoint("/usr/lib/python2.4/site-packages/rdflib-2.3.3-py2.4-linux-i686.egg/rdflib/Graph.py", 615) - prof.run(reactor.run, profile=False) + prof.run(reactor.run, profile=None)
--- a/light9/effecteval/effectloop.py Sun Jun 15 04:23:28 2014 +0000 +++ b/light9/effecteval/effectloop.py Sun Jun 15 04:23:42 2014 +0000 @@ -46,11 +46,13 @@ def setEffects(self): self.currentEffects = [] + log.info('setEffects currentSong=%s', self.currentSong) if self.currentSong is None: return for effectUri in self.graph.objects(self.currentSong, L9['effect']): self.currentEffects.append(EffectNode(self.graph, effectUri)) + log.info('now we have %s effects', len(self.currentEffects)) @inlineCallbacks def getSongTime(self): @@ -147,6 +149,8 @@ if now > self.lastErrorLog + 5: log.error("effect %s: %s" % (e.uri, exc)) self.lastErrorLog = now + log.debug('eval %s effects, got %s outputs', len(self.currentEffects), len(outputs)) + return outputs def logLevels(self, now, out):