[core] Collate blocks debug messages into a single message.