Tracking down log spam without context - NoneType object has no attribute nodeValue

My homeassistant.log file gets spammed with the message 'NoneType' object has no attribute 'nodeValue' really often with tens of entries per each burst, and I’d like to figure out what is causing it to be logged.

Problem is, these lines do not seem to come from a logger, so aren’t attributed to any specific component, and the preceding lines do not share any commonality to point to anything either.
I’d also prefer not to play whac-a-mole by disabling components 1-by-1 until this goes away, that would be more of a headache than just having these entries spamming the log!

Out of 6,451,881 total lines (about 3 months of logs, 500+mb that I should look at rotating!), 1,047,784 lines were this message.

Any ideas?

Hmm, ended up splitting stdout from stderr in the launchd job for hass and the noisy messages are only being output on stdout, where almost every useful log message goes to stderr.

Guess I can just send stdout to /dev/null :man_shrugging: