Add some logging to `/sync` to try and track down #11916.