Enhance the logging in tv_rec to make the source of the state changes a little more obvious.