mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
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:
parent
d9604f15e8
commit
3b06d1ed7c
2 changed files with 3 additions and 1 deletions
1
changelog/62185.fixed
Normal file
1
changelog/62185.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Restored Salt's DeprecationWarnings
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue