chore: ignore HTTPResponse.getheaders() deprecation warning
related issue: https://github.com/openedx/edx-platform/issues/33584 note: this warning is rased from a third party library (elasticsearch)
This commit is contained in:
@@ -132,6 +132,12 @@ def log_python_warnings():
|
||||
'.*You can remove default_app_config.*',
|
||||
category=PendingDeprecationWarning
|
||||
)
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
'Instead access HTTPResponse.headers directly.*',
|
||||
category=DeprecationWarning,
|
||||
module='elasticsearch'
|
||||
)
|
||||
# try:
|
||||
# # There are far too many of these deprecation warnings in startup to output for every management command;
|
||||
# # suppress them until we've fixed at least the most common ones as reported by the test suite
|
||||
|
||||
Reference in New Issue
Block a user