Implement some debug logging for state flow listeners.