comparison py/tempserver.py @ 163:bf2a17873ba1

less verbose logging
author Matt Johnston <matt@ucc.asn.au>
date Sat, 12 Jan 2013 21:54:55 +0800
parents d73077e8cd67
children 5821c5fab919
comparison
equal deleted inserted replaced
162:d73077e8cd67 163:bf2a17873ba1
92 return self.current 92 return self.current
93 93
94 def setup_logging(): 94 def setup_logging():
95 logging.basicConfig(format='%(asctime)s %(message)s', 95 logging.basicConfig(format='%(asctime)s %(message)s',
96 datefmt='%m/%d/%Y %I:%M:%S %p', 96 datefmt='%m/%d/%Y %I:%M:%S %p',
97 level=logging.DEBUG) 97 level=logging.INFO)
98 98
99 def start(): 99 def start():
100 with Tempserver() as server: 100 with Tempserver() as server:
101 server.run() 101 server.run()
102 102