Add python filter to eliminate deprecation warnings

This change adds some python config to remove all of the deprecation
warnings horizon is spawning. The warnings are all coming from oslo
components which horizon is just inhereting inheriting and has no
control over. This change makes horizon logs legible.

Signed-off-by: Kevin Carter <kevin@cloudnull.com>
Change-Id: Idae4e42c971f53597ac3cf044ba82d7dd468e4a5
This commit is contained in:
Kevin Carter 2022-09-07 20:55:31 -05:00
parent 24ce4641bc
commit 005d6d425e
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ from horizon.utils import secret_key
from openstack_dashboard import exceptions
from openstack_dashboard.settings import HORIZON_CONFIG
{% if not (debug | bool) %}
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
{% endif %}
DEBUG = {{ debug }}
TEMPLATE_DEBUG = DEBUG