That is the job of the individual conscience, which then seeks the Church's help in formation and Sacraments when we fall short. Sadly, the Church sometimes prefers consistency to truth in conscience issues.