diff --git a/allianceauth/services/hooks.py b/allianceauth/services/hooks.py index 75ed30dc..b0c3b718 100644 --- a/allianceauth/services/hooks.py +++ b/allianceauth/services/hooks.py @@ -16,7 +16,7 @@ from .models import NameFormatConfig def get_extension_logger(name): """ Takes the name of a plugin/extension and generates a child logger of the extensions logger - to be used by the extension to log events to the extensions logger. + to be used by the extension to log events to the extensions The logging level is determined by the level defined for the parent logger. diff --git a/allianceauth/templatetags/admin_status.py b/allianceauth/templatetags/admin_status.py index 3f8550c5..5747960a 100644 --- a/allianceauth/templatetags/admin_status.py +++ b/allianceauth/templatetags/admin_status.py @@ -162,7 +162,7 @@ def _current_notifications() -> dict: app_notifications = [] hooks = [fn() for fn in get_hooks("app_announcement_hook")] for hook in hooks: - logger.info(hook) + logger.debug(hook) try: app_notifications.extend(cache.get_or_set( f"{hook.app_name}_notification_issues", @@ -173,6 +173,7 @@ def _current_notifications() -> dict: logger.warning("Error when getting %s notifications", hook, exc_info=True) if app_notifications: + logger.debug(app_notifications) application_notifications = app_notifications[:10] else: application_notifications = [] @@ -315,6 +316,7 @@ def _fetch_list_from_github(url: str, max_pages: int = MAX_PAGES) -> list: return result result += request.json() + logger.debug(request.json()) # https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28 # See Example creating a pagination metho