Irtaza Akram
a8a8ae3286
fix: replace pkg_resources with importlib.resources ( #36213 )
2025-02-13 17:43:07 +05:00
Jesper Hodge
1f43d17b21
Revert "Replace pkg_resources with importlib.resources" ( #36208 )
2025-02-05 08:51:50 -05:00
Irtaza Akram
acdbff8b4c
fix: remove pkg_resources
2025-01-08 16:45:19 +05:00
Daniel Valenzuela
398c84e1bc
chore: ignore 'etree' is deprecated
...
Related issue: https://github.com/openedx/edx-platform/issues/32888
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
9752da2b03
chore: ignore warning from pkg_resources.declare_namespace
...
Related issue: https://github.com/openedx/edx-platform/issues/33592
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
ef0a9c00af
chore: ignore import ABCs from 'collections' warning
...
related issue: https://github.com/openedx/edx-platform/issues/33584
note: this warning is from a third party library (libsass)
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
d2f427a672
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)
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
66c5be8c02
chore: ignore default_app_config warning
...
related issue: https://github.com/openedx/edx-platform/issues/33572
2023-11-01 00:18:40 -03:00
Muhammad Soban Javed
2732934e74
fix: re-enable Django deprecation warnings ( #32277 )
...
* fix: re-enable Django deprecation warnings
---------
Co-authored-by: UsamaSadiq <usama7274@gmail.com >
2023-08-07 22:08:00 +05:00
alangsto
a1322abb0d
fix: update docker logger settings to better match normal log settings ( #31448 )
...
* fix: update docker logger settings to better match normal log settings
* feat: add docker-production settings for cms
2022-12-15 09:17:12 -05:00
Ned Batchelder
e39f9c503a
build: suppress Django deprecation warnings ( #29528 )
...
Suppress them both in tests (via setup.py and pytest.ini)
and in management command & application runs
(via logsettings.py).
Developers aren't looking at these warnings; they'll be dealt with in a
formal process for upgrading Django. Suppress them for now so that
important information isn't lost in the noise.
2021-12-15 10:45:12 -05:00
Usama Sadiq
8de47ef51f
refactor: Ran pyupgrade on openedx/core
...
Ran pyupgrade on openedx/core/{djangolib, lib}
2021-04-08 18:34:24 +05:00
Jawayria
9909b933a7
Applied pylint-amnesty to openedx/core/{djangolib, lib, tests, *.py
2021-02-02 21:13:24 +05:00
Mike OConnell
dbf6ef22df
Using logging filters from edx-django-utils ( #25492 )
...
The UserIdFilter and RemoteIpFilter logging filter classes
were moved from edx-platform to edx-django-utils for more
distributed use. This updated removes those classes from
edx-platform, and references their counterparts in
edx-django-utils.
ENT-3494
2020-11-02 21:40:59 -05:00
Mike OConnell
11e4cab622
Added remote IP to logging ( #24932 )
...
* Add remote IP to logging config
Add a new filter to get the remote IP for the current
request and include it in log statements
SEG-34
* Added line for formatting
Added line for formatting
SEG-34
2020-09-14 11:22:11 -04:00
zia.fazal@arbisoft.com
ffd6f48557
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)
2020-01-08 15:34:29 +05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Andrés González
26b3a40133
INCR-108 ( #20058 )
...
* INCR-108: Run python-modernize on openedx/core/lib
* Fixed urlencode import
* Fixed diff quality warnings and six.string_types error
* Fixed pickle import
* Fixed iteritems import
* Fixed ungrouped imports
* Fixed six.moves import issues
2019-04-02 10:26:00 -04:00
Calen Pennington
721dd3bc8a
Log current userid in all log messages
...
REVMI-60
2019-03-12 13:55:08 -04:00
Matthew Piatetsky
444799fb0e
fix unicode strings in openedx/ part 2
2019-02-15 10:15:51 -05:00
Ned Batchelder
3353e7425e
Remove unused imports
2018-11-03 16:07:05 -04:00
Jeremy Bowman
1a67819ce4
PLAT-1945 Better management command ergonomics
2018-02-07 13:24:04 -05:00
Jeremy Bowman
11e134c552
PLAT-1916 Ignore existing usage of deprecated field_data
2018-02-02 16:12:00 -05:00
Feanil Patel
41879e0087
Update comment.
2018-02-01 10:08:40 -05:00
Feanil Patel
14b57f14ff
Remove unnecessary var.
...
Previously it was useful because we updated it conditionally but now
it's just reducing information locality.
2018-02-01 10:08:40 -05:00
Feanil Patel
8d84e8b4a2
Consolidate overrides into base config.
...
They used to be in a conditional but aren't anymore so we don't need to have
them be separate.
2018-02-01 10:08:40 -05:00
Feanil Patel
caff4b5720
console_loglevel never used, remove it.
2018-02-01 10:08:40 -05:00
Feanil Patel
3d6fe85703
syslog_addr config never used.
2018-02-01 10:08:40 -05:00
Feanil Patel
bc08698592
Remove dev_env specific settings.
...
Since we never used dev_env and have removed it.
2018-02-01 10:08:40 -05:00
Feanil Patel
779bc1d772
The dev_env parameter is never used in any of our configs.
2018-02-01 10:08:40 -05:00
Feanil Patel
147ea0c12c
Remove un-necessary conditional.
2018-02-01 10:08:40 -05:00
Feanil Patel
de80ab751a
Remove the debug override.
2018-02-01 10:08:40 -05:00
Jeremy Bowman
5ca1a51460
PLAT-1350 Log Python warnings in production
2018-01-29 15:50:13 -05:00
Kevin Falcone
ee5b8db538
This logs for every API call to an external service
...
It accounts for a large chunk of our splunk logs and is often
repetitive. See forums connections which on a sandbox do:
```
Starting new HTTP connection (1): localhost
```
and
```
comment_client_request_log: request_id=06ac65d3-61b9-4882-9edb-c6b65709318a, method=get, url=http://localhost:18080/api/v1/users/5 , duration=0.0101051330566
```
Add this for any other IDA call.
2017-07-11 16:42:16 -04:00
Omar Khan
510dd90c07
Remove newrelic logging handler
...
It was introduced back in 2012, and is not used in the default
configuration.
2016-02-15 11:04:55 +07:00
Ned Batchelder
99430113e3
Fix pre-existing pylint violations
2015-03-23 12:40:25 -04:00
Ned Batchelder
a84735057d
Move common/lib/*.py to openedx/core/lib
...
This makes these files importable, and puts them into the new best guess
as to where files should live.
2015-03-23 12:40:24 -04:00