I made a mistake in #31588 by not covering the case when node.name isn't in elasticsearch.yml. If you don't set it in elasticsearch.yml you'll never see a node name in the logs.
I have most of a fix for this but I'm finishing it off so I haven't opened a PR yet. I wanted to file this now so no one had to duplicate my research.