Replace remaining prints with logging.info calls

This commit is contained in:
flan 2018-08-28 17:59:29 +02:00
parent 527991beea
commit 92d6579c83

View File

@ -767,10 +767,10 @@ def main():
httpd = make_server(config['host'], int(config['port']), ankiserver) httpd = make_server(config['host'], int(config['port']), ankiserver)
try: try:
print("Serving HTTP on {} port {}...".format(*httpd.server_address)) logging.info("Serving HTTP on {} port {}...".format(*httpd.server_address))
httpd.serve_forever() httpd.serve_forever()
except KeyboardInterrupt: except KeyboardInterrupt:
print("Exiting...") logging.info("Exiting...")
finally: finally:
shutdown() shutdown()