diff --git a/docs/configuration.rst b/docs/configuration.rst index 9cc30d7a..b26d7891 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -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. \ No newline at end of file +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 diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 426cf1dd..179267f3 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -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 +)