Some more detailed error logging for sync.