Skip to content
Snippets Groups Projects
Unverified Commit ab13fb08 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Improve logging of replication (#16309)

parent 48387c56
No related branches found
No related tags found
No related merge requests found
Small improvements to logging in replication code.
...@@ -644,7 +644,7 @@ class ReplicationCommandHandler: ...@@ -644,7 +644,7 @@ class ReplicationCommandHandler:
[stream.parse_row(row) for row in rows], [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. # We've now caught up to position sent to us, notify handler.
await self._replication_data_handler.on_position( await self._replication_data_handler.on_position(
......
...@@ -191,7 +191,12 @@ class ReplicationStreamer: ...@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment