Ignore ResourceWarning
Ignore `ResourceWarning` to clear noise in logs until we replace `EdxRestApiClient` with `OAuthAPIClient`. We have too many warnings like this
unclosed <ssl.SSLSocket fd=33, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('*.*.*', 47040), raddr=('*.*.*.*', 443)
This commit is contained in:
@@ -122,6 +122,7 @@ def log_python_warnings():
|
||||
warnings.filterwarnings('ignore', 'Not importing directory ')
|
||||
warnings.filterwarnings('ignore', 'Setting _field_data is deprecated')
|
||||
warnings.filterwarnings('ignore', 'Setting _field_data via the constructor is deprecated')
|
||||
warnings.filterwarnings('ignore', '.*unclosed.*', category=ResourceWarning)
|
||||
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