# # # # get_error_info_text() # # # include "templates.util.alert.alert_util"; subroutine(get_error_info_text, ( # 2008-09-29 - GMF - Added error_info node to the error report, to report profile, plug-in, and other future information. # 2008-10-14 - KHP - Moved/modified Greg's code to this subroutine for easier handling because the info_node were missing in other function calls # This subroutine returns the error_info node as text. The error_info node is created here. delete_node("v.temp_error_info"); v.temp_error_info = ""; node error_info = "v.temp_error_info"; if (?("command_line.profile")) then ( @error_info{'profile'} = command_line.profile; if (command_line.profile ne '') then ( string profile_name = command_line.profile; node profilenode = 'profiles'{command_line.profile}; if (profilenode{'create_profile_wizard_info'}?{'log_format'}) then @error_info{'log_format'} = @profilenode{'create_profile_wizard_info'}{'log_format'}; if (profilenode{'create_profile_wizard_info'}?{'syslog_required_format'}) then @error_info{'syslog_required_format'} = @profilenode{'create_profile_wizard_info'}{'syslog_required_format'}; if (profilenode{'create_profile_wizard_info'}?{'syslog_format'}) then @error_info{'syslog_format'} = @profilenode{'create_profile_wizard_info'}{'syslog_format'}; ); ); string error_info_text = alert_util_convert_node_to_string(error_info); error_info_text; ));