From 48db591d258cc33e64183f68d7a4a369d511ed40 Mon Sep 17 00:00:00 2001 From: rohow <4090154+rohow@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:45:41 +0800 Subject: [PATCH] fix(logger): Field reference error Fix the error when the server_url in config is not configured. --- headscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headscale.py b/headscale.py index 6805512..14f01b9 100644 --- a/headscale.py +++ b/headscale.py @@ -32,7 +32,7 @@ def get_url(inpage=False): config_yaml = yaml.safe_load(config_file) if "server_url" in config_yaml: return str(config_yaml["server_url"]) - app.logge.warning("Failed to find server_url in the config. Falling back to ENV variable") + app.logger.warning("Failed to find server_url in the config. Falling back to ENV variable") return os.environ['HS_SERVER'] def set_api_key(api_key):