Hakim al Umma Maulana Ashraf Ali Thanvi (Allah have mercy on him) said,
The treatment of spiritual ailments (blameworthy moral characteristics) is not possible without disclosing information about them. Some of them are so hidden and complicated that the one who is seeking the remedy is unaware of them. This is can be seen in books about the path (Sulook) and Moral reformation.
Therefore’ an individual is needed to diagnose and discern about these spiritual ailments. He is the Perfect Spiritual mentor (Shakyh e kamil). Most of the time for a Shaykh e kamil to make a diagnosis it is required that the patient himself informs him about the illness as much as possible and does not hide any information.
This is exactly like the medical Doctor (-patient encounter). Some information for diagnosing the illness he gets from pulse, appearance (physical examination), urine (laboratory test) and for the rest it is necessary that the patient himself gives him information (history).
In this special situation sometimes the (patient’s) nafs dislikes disclosing his spiritual illness to the (spiritual doctor). ………..
However, one should not be ashamed of telling him.
In this world this disclosure is to a single individual, in Here-after everyone will know it.
Here this single disclosure is beneficial in all aspects that it will lead to a cure, whereas the public disclosure in Hereafter will be nothing but explicit humility.
Kaleed e masnavi, volume 2, page 192-3