added state to log messge