changeset 811:6d39131eca07

logging Ignore-this: dd7196722e79b696b606f7b6d9930990 darcs-hash:20110815054114-312f9-48aba76604f936842d8af0c3e9217e08be9c5ae0.gz
author drewp <drewp@bigasterisk.com>
date Sun, 14 Aug 2011 22:41:14 -0700
parents 44e1ca03ddf1
children f97ad4f038c0
files service/frontDoorMessage/frontDoorMessage.py service/onewire/onewire.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/service/frontDoorMessage/frontDoorMessage.py	Sun Aug 14 21:46:57 2011 -0700
+++ b/service/frontDoorMessage/frontDoorMessage.py	Sun Aug 14 22:41:14 2011 -0700
@@ -3,15 +3,16 @@
 """
 import cyclone.web, sys
 import restkit
-from twisted.python import log
 from twisted.internet import reactor
 from twisted.internet.defer import inlineCallbacks
 sys.path.append("/my/proj/homeauto/lib")
 from cycloneerr import PrettyErrorHandler
+from logsetup import log
 
 class LcdParts(object):
     def __init__(self, putUrl):
         self.putUrl = putUrl
+        log.info("restarting- message is now empty")
         self.message = ""
         self.lastLine = ""
 
@@ -75,6 +76,5 @@
 
     lcdParts = LcdParts(config['frontDoorArduino'] + 'lcd')
     
-    log.startLogging(sys.stdout)
     reactor.listenTCP(config['servePort'], Application(lcdParts))
     reactor.run()
--- a/service/onewire/onewire.py	Sun Aug 14 21:46:57 2011 -0700
+++ b/service/onewire/onewire.py	Sun Aug 14 22:41:14 2011 -0700
@@ -183,7 +183,7 @@
         self.write("onewire reader (also gathers temps from arduinos); logs to graphite.\n\n Last temps: %r" % self.settings.poller.lastDoc)
 
 if __name__ == '__main__':
-    log.setLevel(logging.DEBUG)
+    log.setLevel(logging.INFO)
     poller = Poller()
     poller.sendTemps()
     reactor.listenTCP(9078, cyclone.web.Application([