migrate: improve logging for name and ID