Mercurial > code > home > repos > light9
changeset 1442:3e52568394ef
fix logging that might be printing blank lines
Ignore-this: 466a7535187fe5eead34587134b441eb
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Jun 2016 21:14:10 +0000 |
parents | bc753db699f7 |
children | dd3f72ac7214 |
files | light9/Submaster.py light9/effect/effecteval.py light9/rdfdb/syncedgraph.py light9/uihelpers.py |
diffstat | 4 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/Submaster.py Sat Jun 11 21:13:46 2016 +0000 +++ b/light9/Submaster.py Sat Jun 11 21:14:10 2016 +0000 @@ -379,7 +379,7 @@ if __name__ == "__main__": reload_data() s = Submasters() - print s.get_all_subs() + print 'subs', s.get_all_subs() if 0: # turn this on to normalize all subs for sub in s.get_all_subs(): print "before", sub
--- a/light9/effect/effecteval.py Sat Jun 11 21:13:46 2016 +0000 +++ b/light9/effect/effecteval.py Sat Jun 11 21:14:10 2016 +0000 @@ -36,7 +36,6 @@ def updateEffectsFromGraph(self): self.effectOutputs = {} for effect in self.graph.subjects(RDF.type, L9['Effect']): - print "found fx", effect settings = [] for setting in self.graph.objects(effect, L9['setting']): d = self.graph.value(setting, L9['device']) @@ -50,7 +49,6 @@ if settings: self.effectOutputs[effect] = settings - print settings def outputFromEffect(self, effectSettings, songTime): """
--- a/light9/rdfdb/syncedgraph.py Sat Jun 11 21:13:46 2016 +0000 +++ b/light9/rdfdb/syncedgraph.py Sat Jun 11 21:14:10 2016 +0000 @@ -109,8 +109,7 @@ # Rerequest the full state from the server, try the patch # again after that, then give up. debugKey = '[id=%s]' % (id(p) % 1000) - print '' - log.debug("apply local patch %s %s", debugKey, p) + log.debug("\napply local patch %s %s", debugKey, p) try: patchQuads(self._graph, deleteQuads=p.delQuads,
--- a/light9/uihelpers.py Sat Jun 11 21:13:46 2016 +0000 +++ b/light9/uihelpers.py Sat Jun 11 21:14:10 2016 +0000 @@ -103,13 +103,12 @@ # for lambda callbacks def printout(t): - print t + print 'printout', t def printevent(ev): for k in dir(ev): if not k.startswith('__'): - print k,getattr(ev,k) - print "" + print 'ev', k, getattr(ev,k) def eventtoparent(ev,sequence): "passes an event to the parent, screws up TixComboBoxes"