Fix only log promise iteration in stack path for leaf iteration