Jennifer Richards
6a96a69234
feat: improve / clean up logging ( #7591 )
...
* refactor: always use console log handler
* refactor: json for k8s, plain otherwise
* chore: remove syslog from wsgi.py
* chore: remove debug.log()
* chore: drop syslog from settings.py
* refactor: use log.log() in person.utils
* refactor: fetch_meeting_attendance->log.log()
* chore: gunicorn logs as JSON (wip)
* feat: better json log formatting
* refactor: improve log config
* feat: gunicorn access log fields
* fix: remove type hints
The gunicorn logger plays tricks with the
LogRecord args parameter to let it have string
keys instead of being a simple tuple.
The mypy tests rightly flag this. Rather
than fighting the typing, just remove the
hints and leave a comment warning not to
use the gunicorn-specific formatter with
other loggers.
2024-06-26 14:53:05 -05:00
Robert Sparks
cd748cd760
Update internal references to trac.tools.ietf.org to point to trac.ietf.org. Remove several links into tools.ietf.org. Commit ready for merge.
...
- Legacy-Id: 19422
2021-10-13 21:43:44 +00:00
Robert Sparks
53520a7c0e
Removed unneeded import from wsgi.py
...
- Legacy-Id: 18916
2021-03-22 20:56:36 +00:00
Robert Sparks
e563b6e30d
Remove the check for activate_this from wsgi.py since modern venv doesn't provide that script. Change the logging to always log when starting a wsgi instance.
...
- Legacy-Id: 18908
2021-03-08 17:40:45 +00:00
Henrik Levkowetz
a827c482c2
Removed the wsgi.py warning about starting without virtualenv; this is normal under Py3.
...
- Legacy-Id: 18058
2020-06-24 20:48:01 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
3ec7e864be
Converted leading tabs to spaces in ietf/**/*.py
...
- Legacy-Id: 16310
2019-06-27 14:51:02 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
21dfc19441
Added some logging to wsgi.py, to show the virtualenv settings being used.
...
- Legacy-Id: 12230
2016-10-29 11:44:00 +00:00
Henrik Levkowetz
f0a730856b
Added a pip config file to support virtualenvs created with option --system-site-packages. The recommended way of creating a virtualenv for the datatracker is now '$ virtualenv --system-site-packages env', placing the virtualenv libs and binaries under env/bin/ and env/lib/. Also updated the ietf/wsgi.py file to use this.
...
- Legacy-Id: 12172
2016-10-18 19:11:28 +00:00
Henrik Levkowetz
9c5de53b54
Added virtualenv support to wsgi.py
...
- Legacy-Id: 9467
2015-04-12 19:43:03 +00:00
Henrik Levkowetz
7ecfac6308
Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x.
...
- Legacy-Id: 9028
2015-02-08 21:16:44 +00:00
Henrik Levkowetz
028b7e315a
Reverted to [9025] because commit [9026] failed (it was incomplete with a broken working dir).
...
- Legacy-Id: 9027
Note: SVN reference [9026] has been migrated to Git commit 4a3749a66b
2015-02-08 20:03:16 +00:00
Henrik Levkowetz
731744cce9
Fix django 1.7 incompatibilities: Upgrade wsgi.py according to https://docs.djangoproject.com/en/1.7/releases/1.7/#wsgi-scripts
...
- Legacy-Id: 8829
2014-12-22 17:48:28 +00:00
Henrik Levkowetz
5bef5d11ae
Made doc/ pyflakes-clean.
...
- Legacy-Id: 7462
2014-03-15 16:09:47 +00:00
Henrik Levkowetz
6460a7eef2
Updated the comment with the working Apache setting for a dev server.
...
- Legacy-Id: 6170
2013-09-18 20:31:57 +00:00
Henrik Levkowetz
68cea34e64
Fixed a typo in the WSGI connector.
...
- Legacy-Id: 6163
2013-09-18 17:43:38 +00:00
Henrik Levkowetz
dbda8e8c53
A WSGI connector for the datatracker, to let us run under mod_wsgi.
...
- Legacy-Id: 6157
2013-09-16 20:52:37 +00:00