Improve logging

This commit is contained in:
croneter 2019-04-17 16:32:11 +02:00
parent 130ec674e5
commit 4fa1f48b43

View file

@ -72,6 +72,7 @@ class WebService(backgroundthread.KillableThread):
try: try:
server = HttpServer(('127.0.0.1', v.WEBSERVICE_PORT), server = HttpServer(('127.0.0.1', v.WEBSERVICE_PORT),
RequestHandler) RequestHandler)
LOG.info('Serving http on %s', server.socket.getsockname())
server.serve_forever() server.serve_forever()
except Exception as error: except Exception as error:
LOG.error('Error encountered: %s', error) LOG.error('Error encountered: %s', error)