Download:
child 19:617cf0ab60ed
parent 17:ba794747cbdc
18:95430744fb8d
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 20:50:33 +0800
viewer: use logging's internal formatter

1 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
viewer.py file | annotate | diff | comparison | revisions
--- a/viewer.py Wed Jun 15 15:55:13 2016 +0800
+++ b/viewer.py Wed Jun 15 20:50:33 2016 +0800
@@ -88,7 +88,8 @@
database.init(rel('database.sqlite'))
def listen(self, port, address='', **kwargs):
- logging.info('{} is serving on {}:{}'.format(self.__class__.__name__, address, port))
+ name = self.__class__.__name__
+ logging.info('%s is serving on %s:%d', name, address, port)
super(CandolintViewer, self).listen(port, address, **kwargs)