diff --git a/authentik/api/v3/urls.py b/authentik/api/v3/urls.py index f6b2f45f8..a3e92c7c9 100644 --- a/authentik/api/v3/urls.py +++ b/authentik/api/v3/urls.py @@ -21,9 +21,14 @@ _other_urls = [] for _authentik_app in get_apps(): try: api_urls = import_module(f"{_authentik_app.name}.urls") - except (ModuleNotFoundError, ImportError): + except (ModuleNotFoundError, ImportError) as exc: + LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exception=exc) continue if not hasattr(api_urls, "api_urlpatterns"): + LOGGER.debug( + "App does not define API URLs", + app_name=_authentik_app.name, + ) continue urls: list = getattr(api_urls, "api_urlpatterns") for url in urls: