Put back deprecation warnings

Checked the
https://docs.python.org/3/library/warnings.html#warnings.filterwarnings
docs but there wasn't any obvious reason why our warnings disappear.
This restores the DeprecationWarnings showing up on the command line.
This commit is contained in:
Wayne Werner 2022-12-13 13:15:23 -06:00 committed by Megan Wilhite
parent d9604f15e8
commit 3b06d1ed7c
2 changed files with 3 additions and 1 deletions

1
changelog/62185.fixed Normal file
View file

@ -0,0 +1 @@
Restored Salt's DeprecationWarnings

View file

@ -70,7 +70,8 @@ warnings.filterwarnings(
"", # No deprecation message match
DeprecationWarning, # This filter is for DeprecationWarnings
r"^(salt|salt\.(.*))$", # Match module(s) 'salt' and 'salt.<whatever>'
append=True,
# Do *NOT* add append=True here - if we do, salt's DeprecationWarnings will
# never show up
)
# Filter the backports package UserWarning about being re-imported