Mercurial > templog
comparison py/tempserver.py @ 267:08c3cf3d0ded
fix wrong date format. how'd that slip in.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 11 Aug 2015 22:19:29 +0800 |
parents | 20c89630be6c |
children | 02aff9ff8d24 |
comparison
equal
deleted
inserted
replaced
266:20c89630be6c | 267:08c3cf3d0ded |
---|---|
129 def setup_logging(debug = False): | 129 def setup_logging(debug = False): |
130 level = logging.INFO | 130 level = logging.INFO |
131 if debug: | 131 if debug: |
132 level = logging.DEBUG | 132 level = logging.DEBUG |
133 logging.basicConfig(format='%(asctime)s %(message)s', | 133 logging.basicConfig(format='%(asctime)s %(message)s', |
134 datefmt='%m/%d/%Y %I:%M:%S %p', | 134 datefmt='%d/%m/%Y %I:%M:%S %p', |
135 level=level) | 135 level=level) |
136 #logging.getLogger("asyncio").setLevel(logging.DEBUG) | 136 #logging.getLogger("asyncio").setLevel(logging.DEBUG) |
137 | 137 |
138 def start(test_mode, nowait): | 138 def start(test_mode, nowait): |
139 with Tempserver(test_mode, nowait) as server: | 139 with Tempserver(test_mode, nowait) as server: |