Improve log message when event is fired When pull-replication is not fully loaded, events are stored in the memory queue. This fact is logged in the `pull_replication_log` file. For better readability, add all information about the stored event. Bug: Issue 307574381 Change-Id: Ife992fefdf1a8bb880ffcc69aa0ab14ed08afe0b
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java index 1ba47de..5f4f5bc 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java
@@ -219,7 +219,10 @@ private void fire(ReferenceUpdatedEvent event, ReplicationState state) { if (!running) { stateLog.warn( - "Replication plugin did not finish startup before event, event replication is postponed", + String.format( + "Replication plugin did not finish startup before event, event replication is postponed" + + " for event %s", + event), state); beforeStartupEventsQueue.add(event);