mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-17 00:10:15 +02:00
Move logger statements to debug
This commit is contained in:
parent
401c093b74
commit
9cc3283399
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user