mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 11:13:49 +01:00
Improve logging of replication (#16309)
This commit is contained in:
parent
48387c56f1
commit
ab13fb08bf
3 changed files with 8 additions and 2 deletions
1
changelog.d/16309.misc
Normal file
1
changelog.d/16309.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Small improvements to logging in replication code.
|
|
@ -644,7 +644,7 @@ class ReplicationCommandHandler:
|
|||
[stream.parse_row(row) for row in rows],
|
||||
)
|
||||
|
||||
logger.info("Caught up with stream '%s' to %i", stream_name, cmd.new_token)
|
||||
logger.info("Caught up with stream '%s' to %i", stream_name, cmd.new_token)
|
||||
|
||||
# We've now caught up to position sent to us, notify handler.
|
||||
await self._replication_data_handler.on_position(
|
||||
|
|
|
@ -191,7 +191,12 @@ class ReplicationStreamer:
|
|||
|
||||
if updates:
|
||||
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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue