Knowledge is good and important. Doctrine is important. But what makes it important is that its purpose is to stir up in us the love of God. We cannot love what we do not know, so in order to love God we need to know Him. And part of knowing Him is knowing about Him. But the purpose of knowing about Him must be love. It must be charity.
We are well aware that all of us have knowledge; but while knowledge puffs up, love is what builds up. Someone may think that he has full knowledge of something and yet not know it as well as he should; but someone who loves God is known by God. [1 Cor. 8:1–3, NJB]
Love never comes to an end. But if there are prophecies, they will be done away with; if tongues, they will fall silent; and if knowledge, it will be done away with. For we know only imperfectly, and we prophesy imperfectly; but once perfection comes, all imperfect things will be done away with. [1 Cor. 13:8–10, NJB]
And the CCC quotes the Roman Catechism:
The whole concern of doctrine and its teaching must be directed to the love that never ends. Whether something is proposed for belief, for hope or for action, the love of our Lord must always be made accessible, so that anyone can see that all the works of perfect Christian virtue spring from love and have no other objective than to arrive at love. (CCC §25)
We should love the truth, but we should love it especially because in loving truth we love God.