Download:
child 69:3d3bd52ec6e2
parent 67:4d6dfefbcc0c
68:dc5e61968b6b
Anton Shestakov <av6@dwimlabs.net>, Wed, 27 Jul 2016 23:56:49 +0800
viewer: use built-in logging formatter

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
viewer.py file | annotate | diff | comparison | revisions
--- a/viewer.py Wed Jul 27 23:55:31 2016 +0800
+++ b/viewer.py Wed Jul 27 23:56:49 2016 +0800
@@ -309,7 +309,7 @@
def listen(self, port, address='', **kwargs):
name = self.__class__.__name__
- logging.info('{} is serving on {}:{}'.format(name, address, port))
+ logging.info('%s is serving on %s:%d', name, address, port)
super(Viewer, self).listen(port, address, **kwargs)