Add debug output for sync check.