Mercurial > code > home > repos > light9
changeset 834:ae359590eb8a
logging
Ignore-this: 38894578f8bf4cf53b29f684ea9b8fe4
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 04 Jun 2013 23:52:13 +0000 |
parents | bdfdfea84510 |
children | 9c8583cd14ea |
files | bin/subcomposer light9/dmxclient.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/subcomposer Tue Jun 04 23:51:57 2013 +0000 +++ b/bin/subcomposer Tue Jun 04 23:52:13 2013 +0000 @@ -94,7 +94,6 @@ def uriChanged(self, newUri): - print "chg", newUri # i guess i show the label and icon for this if newUri is Local: self.subIcon.config(text="(local)") @@ -154,7 +153,7 @@ currentUri = Observable(Local) def pc(val): - print "change viewed sub to", val + log.info("change viewed sub to %s", val) currentUri.subscribe(pc) EditChoice(self, self.graph, currentUri).frame.pack(side='top') @@ -221,7 +220,7 @@ def action(self, *args): subname = self.entry.get() self.cmd(subname) - print "sub", self.cmd, subname + log.info("command %s %s", self.cmd, subname) def set(self, text): self.entry.delete(0, 'end')
--- a/light9/dmxclient.py Tue Jun 04 23:51:57 2013 +0000 +++ b/light9/dmxclient.py Tue Jun 04 23:52:13 2013 +0000 @@ -42,7 +42,8 @@ time.sleep(1) else: def err(error): - log.error("dmx server error %s", error) + log.error("dmx server error talking to %s: %s", + networking.dmxServer.url, error.getErrorMessage()) time.sleep(1) d = _dmx.callRemote('outputlevels', clientid, levellist) d.addErrback(err)