Okay, so the warning is indeed a bug and shouldn't be printed at all. I will contact the dnsmasq
maintainer to check what the best solution should look like and keep you updated!
Pi-hole will then likely push out an FTL v5.25.1 soon after. Thank you all for helping characterizing and confirming this bug! At this point I don't need anything more from you.
Summary: you can ignore the warning for now as it printed due to an inaccurate condition.
edit For the curious: this is how the bug is triggered in the code:
It is unclear at this point how to fix this best, but we will probably change the second quoted code block to not set log_resource
in the REFUSED
case.