fix(logger): Field reference error

Fix the error when the server_url in config is not configured.
This commit is contained in:
rohow
2023-04-14 17:45:41 +08:00
committed by GitHub
parent 3934c3b2cf
commit 48db591d25

View File

@@ -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):