Even when using it perfectly onion routing has plenty of flaws. And there are many differences between how routing works on Tor vs Lightning that are detrimental to privacy. You can get defensive and pretend they don't exist if you want.
https://github.com/Attacks-on-Tor/Attacks-on-Tor
