summary refs log tree commit diff
path: root/synapse/logging (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-05Stop the parent process flushing the logs on exit (#8012)Richard van der Hoff4-3/+10
This solves the problem that the first few lines are logged twice on matrix.org. Hopefully the comments explain it.
2020-08-05bug report template: move comments into comment (#8030)Richard van der Hoff1-2/+2
2020-08-04Spruce up the check-newsfragment CI output (#8024)Andrew Morgan2-1/+13
This PR: * Reduces the amount of noise in the `check-newsfragment` CI output by hiding the dependency installation output by default. * Prints a link to the changelog/debian changelog section of the contributing guide if an error is found.
2020-08-04Fix async/await calls for broken media providers. (#8027)Patrick Cloke3-22/+21
2020-08-04Convert the SimpleHttpClient to async. (#8016)Patrick Cloke3-32/+26
2020-08-04Convert streams to async. (#8014)Patrick Cloke10-30/+27
2020-08-04re-implement daemonize (#8011)Richard van der Hoff4-14/+135
This has long been something I've wanted to do. Basically the `Daemonize` code is both too flexible and not flexible enough, in that it offers a bunch of features that we don't use (changing UID, closing FDs in the child, logging to syslog) and doesn't offer a bunch that we could do with (redirecting stdout/err to a file instead of /dev/null; having the parent not exit until the child is running). As a first step, I've lifted the Daemonize code and removed the bits we don't use. This should be a non-functional change. Fixing everything else will come later.
2020-08-03Remove signature check on v1 identity server lookups (#8001)Andrew Morgan2-31/+4
We've [decided](https://github.com/matrix-org/synapse/issues/5253#issuecomment-665976308) to remove the signature check for v1 lookups. The signature check has been removed in v2 lookups. v1 lookups are currently deprecated. As mentioned in the above linked issue, this verification was causing deployments for the vector.im and matrix.org IS deployments, and this change is the simplest solution, without being unjustified. Implementations are encouraged to use the v2 lookup API as it has [increased privacy benefits](https://github.com/matrix-org/matrix-doc/pull/2134).
2020-08-03Prevent join->join membership transitions changing member count (#7977)Andrew Morgan6-13/+126
`StatsHandler` handles updates to the `current_state_delta_stream`, and updates room stats such as the amount of state events, joined users, etc. However, it counts every new join membership as a new user entering a room (and that user being in another room), whereas it's possible for a user's membership status to go from join -> join, for instance when they change their per-room profile information. This PR adds a check for join->join membership transitions, and bails out early, as none of the further checks are necessary at that point. Due to this bug, membership stats in many rooms have ended up being wildly larger than their true values. I am not sure if we also want to include a migration step which recalculates these statistics (possibly using the `_populate_stats_process_rooms` bg update). Bug introduced in the initial implementation https://github.com/matrix-org/synapse/pull/4338.
2020-08-03Implement handling of HTTP HEAD requests. (#7999)Patrick Cloke3-8/+54
2020-08-03Convert the crypto module to async/await. (#8003)Patrick Cloke3-132/+109
2020-08-03Allow guests to operate in encrypted rooms (#7314)Michael Albert2-1/+2
Signed-off-by: Michael Albert <michael.albert@awesome-technologies.de>
2020-08-03Convert replication code to async/await. (#7987)Patrick Cloke11-38/+29
2020-08-03Convert ACME code to async/await. (#7989)Patrick Cloke3-14/+11
2020-07-31