better logging on replication