Do you think it is outside the loving, parental, character of God to inflict pain on a “child” who is being disobedient? How you answer this question will say a lot about being able to see affliction as judgement and God trying to get your attention when there is unrepentant sin in your life. What does the Bible say?
Joel 1:13 13 Put on sackcloth, O priests, and mourn; wail, you who minister before the altar. Come, spend the night in sackcloth, you who minister before my God; for the grain offerings and drink offerings are withheld from the house of your God.