def on_enter(new_state, event):
    LOG.debug("Entering new state '%s' in response to event '%s'",
              new_state, event)
Used to log when entering a state.
dataset/ETHPy150Open openstack/ironic/ironic/common/states.py/on_enter