Such a Confession is Pleasing to God
The Lord, brethren, stands in need of nothing; and He desires nothing of any one except that confession be made to Him. For, says the elect David, “I will confess unto the Lord; and that will please Him more than a young bullock that has horns and hoofs. Let the poor see it, and be glad.” And again he says, “Offer unto God the sacrifice of praise, and pay your vows unto the Most High. And call upon me in the day of your trouble: I will deliver you, and you shall glorify me.” For “the sacrifice of God is a broken spirit.”
Source: First Epistle (New Advent)