Mercurial > templog
comparison py/uploader.py @ 163:bf2a17873ba1
less verbose logging
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 12 Jan 2013 21:54:55 +0800 |
parents | 256505f98c4d |
children | f4aabbf0da67 |
comparison
equal
deleted
inserted
replaced
162:d73077e8cd67 | 163:bf2a17873ba1 |
---|---|
55 try: | 55 try: |
56 tosend = self.get_tosend(readings) | 56 tosend = self.get_tosend(readings) |
57 nreadings = len(readings) | 57 nreadings = len(readings) |
58 self.send(tosend) | 58 self.send(tosend) |
59 readings = None | 59 readings = None |
60 L("Sent updated %d readings" % nreadings) | 60 D("Sent updated %d readings" % nreadings) |
61 except urllib2.HTTPError, e: | 61 except urllib2.HTTPError, e: |
62 E("Error in uploader: %s" % str(e)) | 62 E("Error in uploader: %s" % str(e)) |
63 except Exception, e: | 63 except Exception, e: |
64 EX("Error in uploader: %s" % str(e)) | 64 EX("Error in uploader: %s" % str(e)) |
65 finally: | 65 finally: |