There are many cases in halakha where one is discouraged from adopting a stringency because it appears to be an expression of 'religious haughtiness' (יוהרא).
When should someone be concerned about this? I assume that it matters how obvious the stringency would be to others, as well as how much, halakhically, one would gain by adhering to a higher standard. For example, what if everyone in your community does something in a way that is b'dieved permissible, but no posek believes it to be lechatchilah? What if it is to offset a personal issue (such as standing during the haftorah, which nobody does, in order to prevent oneself from falling asleep)?
Basically, does anyone know of a comprehensive discussion of the applicability of doing things that appear as yuhara?