why is it generating stuff if the lists are empty? <log> [2024-10-07 10:29:55.626]…
- User
why is it generating stuff if the lists are empty?
# Debugging statements logger.info(f"Is middleware: {self.swcp.is_middleware}") logger.info(f"RTE Mode API List: {rte_mode_api_list}") logger.info(f"RTE Switch API List: {rte_switch_api_list}") # Skip Middleware (QM or ASIL) SWCs if not self.swcp.is_middleware and (rte_mode_api_list or rte_switch_api_list): logger.debug("Condition met: Not middleware and has RTE mode or switch API list") updated_context.update( header=self._get_header(), includes=self._get_includes(), rte_mode_api_list=rte_mode_api_list, rte_switch_api_list=rte_switch_api_list, misra_justifications=self._get_misra_justifications() ) return updated_context - Assistant
Based on the log and code snippet you provided, it seems like there might be a misunderstanding about the condition under which the configuration file is generated. Here's what I can gather from the code: