Add logging for service state.