Store more in logs and use __name__ as logger
More logging and webserver error handling (semi-tested)