Merge "Add error logs when none of the state conditions are satisfied" into tm-qpr-dev