Add settings entries for suppressable logging messages around email

processing.
This commit is contained in:
Christopher Broderick 2025-05-09 19:39:42 +02:00
parent 1f22f545b5
commit da3ba66277
2 changed files with 17 additions and 1 deletions

View File

@ -94,4 +94,12 @@ You may add your own site specific navigation header to be included inside the <
helpdesk/custom_navigation_header.html
2. Update the contents to display your custom navigation.
2. Update the contents to display your custom navigation.
Suppressable Log Messages
-------------------------
Some logging messages support being switched on or off accroding to deplpoyment preferences.
The following settings variables control emiting log messages for specific scenarios:
LOG_WARN_WHEN_CC_EMAIL_NOT_LINKED_TO_A_USER - there is no user matching the email address in the CC list. Defaults to False
LOG_WARN_WHEN_CC_EMAIL_LINKED_TO_MORE_THAN_1_USER - there is more than 1 user matching the email address in the CC list. Defaults to True

View File

@ -487,3 +487,11 @@ HELPDESK_GET_NEW_TICKET_WEBHOOK_URLS = getattr(
)
HELPDESK_WEBHOOK_TIMEOUT = getattr(settings, "HELPDESK_WEBHOOK_TIMEOUT", 3)
LOG_WARN_WHEN_CC_EMAIL_NOT_LINKED_TO_A_USER = getattr(
settings, "HELPDESK_LOG_WARN_WHEN_CC_EMAIL_NOT_LINKED_TO_A_USER", False
)
LOG_WARN_WHEN_CC_EMAIL_LINKED_TO_MORE_THAN_1_USER = getattr(
settings, "HELPDESK_LOG_WARN_WHEN_CC_EMAIL_LINKED_TO_MORE_THAN_1_USER", True
)