fix(app): Add some more debugging

This commit is contained in:
Ferdinand Thiessen 2021-12-17 12:21:53 +01:00
parent 1b80e39648
commit cfac55efe0
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ def __load_plugins(app):
else: else:
logger.info(f"Using plugin: {entry_point.name}") logger.info(f"Using plugin: {entry_point.name}")
app.config["FG_PLUGINS"][entry_point.name] = plugin app.config["FG_PLUGINS"][entry_point.name] = plugin
else:
logger.debug(f"Skip disabled plugin {entry_point.name}")
if "FG_AUTH_BACKEND" not in app.config: if "FG_AUTH_BACKEND" not in app.config:
logger.error("No authentication plugin configured or authentication plugin not found") logger.error("No authentication plugin configured or authentication plugin not found")
raise RuntimeError("No authentication plugin configured or authentication plugin not found") raise RuntimeError("No authentication plugin configured or authentication plugin not found")