Added is_leaf field to the debug_log.