0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 10:53:52 +01:00
synapse/tests/test_utils
Eric Eastwood 1903c7e5ed
Remove duplicate timestamp from test logs (_trial_temp/test.log) (#15636)
Fix https://github.com/matrix-org/synapse/issues/15618

### Before

```
2023-05-17 22:51:36-0500 [-] 2023-05-17 22:51:36,889 - synapse.server - 338 - INFO - sentinel - Finished setting up.
```

### After

```
2023-05-19 18:16:20-0500 [-] synapse.server - 338 - INFO - sentinel - Finished setting up.
```


### Dev notes

The `Twisted.Logger` controls the `2023-05-19 18:16:20-0500 [-]` prefix, see : [`twisted/twisted` -> `src/twisted/logger/_format.py#L362-L374`](34b161e66b/src/twisted/logger/_format.py (L362-L374))

And we delegate our logs to the Twisted Logger for the tests which puts it in `_trial_temp/test.log`
2023-05-22 13:49:01 -05:00
..
__init__.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
event_injection.py Ensure fed-sender catchup does not block for full state (#15248) 2023-03-13 12:31:19 +00:00
html_parsers.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
logging_setup.py Remove duplicate timestamp from test logs (_trial_temp/test.log) (#15636) 2023-05-22 13:49:01 -05:00
oidc.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00