0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 03:53:52 +01:00

Improve logging of replication (#16309)

This commit is contained in:
Erik Johnston 2023-09-13 10:51:50 +01:00 committed by GitHub
parent 48387c56f1
commit ab13fb08bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

1
changelog.d/16309.misc Normal file
View file

@ -0,0 +1 @@
Small improvements to logging in replication code.

View file

@ -191,7 +191,12 @@ class ReplicationStreamer:
if updates: if updates:
logger.info( logger.info(
"Streaming: %s -> %s", stream.NAME, updates[-1][0] "Streaming: %s -> %s (limited: %s, updates: %s, max token: %s)",
stream.NAME,
updates[-1][0],
limited,
len(updates),
current_token,
) )
stream_updates_counter.labels(stream.NAME).inc(len(updates)) stream_updates_counter.labels(stream.NAME).inc(len(updates))