summary refs log tree commit diff
path: root/tests/logging/test_terse_json.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add missing type hints in tests (#14879)Patrick Cloke2023-01-261-12/+18
| | | | * FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
* Implementation of HTTP 307 response for MSC3886 POST endpoint (#14018)Hugh Nimmo-Smith2022-10-181-0/+1
| | | | Co-authored-by: reivilibre <olivier@librepush.net> Co-authored-by: Andrew Morgan <andrewm@element.io>
* Include exception in json logging (#11028)Nick Barrett2021-10-081-0/+28
|
* Add reactor to `SynapseRequest` and fix up types. (#10868)Erik Johnston2021-09-241-1/+2
|
* Merge branch 'master' into developAndrew Morgan2021-04-201-2/+4
|\
| * Always use the name as the log ID. (#9829)Patrick Cloke2021-04-201-2/+4
| | | | | | | | | | As far as I can tell our logging contexts are meant to log the request ID, or sometimes the request ID followed by a suffix (this is generally stored in the name field of LoggingContext). There's also code to log the name@memory location, but I'm not sure this is ever used. This simplifies the code paths to require every logging context to have a name and use that in logging. For sub-contexts (created via nested_logging_contexts, defer_to_threadpool, Measure) we use the current context's str (which becomes their name or the string "sentinel") and then potentially modify that (e.g. add a suffix).
* | Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
|/ | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-2/+1
|
* Record more information into structured logs. (#9654)Patrick Cloke2021-04-081-4/+66
| | | | Records additional request information into the structured logs, e.g. the requester, IP address, etc.
* Various clean-ups to the logging context code (#8935)Patrick Cloke2020-12-141-5/+2
|
* Improve tests for structured logging. (#8916)Patrick Cloke2020-12-111-27/+46
|
* Support generating structured logs in addition to standard logs. (#8607)Patrick Cloke2020-10-291-183/+70
| | | | | | | This modifies the configuration of structured logging to be usable from the standard Python logging configuration. This also separates the formatting of logs from the transport allowing JSON logs to files or standard logs to sockets.
* Separate the TCP and terse JSON formatting code. (#8587)Patrick Cloke2020-10-211-1/+1
| | | | This should (theoretically) allow for using the TCP code with a different output type and make it easier to use the JSON code with files / console.
* Fix for structured logging tests stomping on logs (#6023)Amber Brown2019-09-131-2/+2
|
* Implement a structured logging output system. (#5680)Amber Brown2019-08-281-0/+234