Fixed logging inside of the Rule class.