diff --git a/src/core/src/core_logic/ExecutionConfig.py b/src/core/src/core_logic/ExecutionConfig.py index 7e30b2c2..a2347c94 100644 --- a/src/core/src/core_logic/ExecutionConfig.py +++ b/src/core/src/core_logic/ExecutionConfig.py @@ -186,20 +186,23 @@ def __is_package_eula_accepted(self): """ Reads customer provided config on EULA acceptance from disk and returns a boolean. NOTE: This is a temporary solution and will be deprecated no later than TBD date""" if not os.path.exists(Constants.AzGPSPaths.EULA_SETTINGS): - print("NOT accepting EULA for any patch as no corresponding EULA Settings found on the VM") + self.composite_logger.log_debug("NOT accepting EULA for any patch as no corresponding EULA Settings found on the VM") return False try: eula_settings = json.loads(self.env_layer.file_system.read_with_retry(Constants.AzGPSPaths.EULA_SETTINGS) or 'null') + self.composite_logger.log_debug("EULA config values read from disk: AcceptEULAForAllPatches=[{0}] AcceptedBy=[{1}] LastModified=[{2}]" + .format(str(Constants.EulaSettings.ACCEPT_EULA_FOR_ALL_PATCHES), str(Constants.EulaSettings.ACCEPTED_BY), + str(Constants.EulaSettings.LAST_MODIFIED))) if eula_settings is not None \ and Constants.EulaSettings.ACCEPT_EULA_FOR_ALL_PATCHES in eula_settings \ and eula_settings[Constants.EulaSettings.ACCEPT_EULA_FOR_ALL_PATCHES] is True: - print("Accept EULA set to True in customer config") + self.composite_logger.log_debug("Accept EULA set to True in customer config") return True else: - print("Accept EULA not found to be set to True in customer config") + self.composite_logger.log_debug("Accept EULA not found to be set to True in customer config") return False except Exception as error: - print("Error occurred while reading and parsing EULA settings. Not accepting EULA for any patch. Error=[{0}]".format(repr(error))) + self.composite_logger.log_debug("Error occurred while reading and parsing EULA settings. Not accepting EULA for any patch. Error=[{0}]".format(repr(error))) return False