Beispiel #1
0
        public ProcessFailedError GetFailError()
        {
            var res = new ProcessFailedError(this);

            res.Data["process_name"] = ToString();
            try
            {
                XmlDocument doc = XmlTool.CreateDocument("Job");
                m_job.Root.SaveToXml(doc.DocumentElement);
                XmlTool.RemovePasswords(doc.DocumentElement);
                res.Data["job_definition"] = doc.OuterXml;
            }
            catch
            {
            }
            return(res);
        }
Beispiel #2
0
 private void RunProcessForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (!m_process.State.IsEndState())
     {
         MainWindow.Instance.ShowDocker(new ProcesslistDockerFactory());
     }
     if (cbxSendError.Visible && cbxSendError.Checked && !m_isErrorSent)
     {
         ProcessFailedError ex = m_process.GetFailError();
         var logs = new List <LogMessageRecord>();
         logs.AddRange(m_process.LogSource.GetMessages());
         logs.Add(new LogMessageRecord {
             Level = LogLevel.Info, Message = "===============LOW LEVEL LOG============"
         });
         logs.AddRange(Logging.GetFeedbackLastLogEntries());
         ErrorSendThread.SendError(ex, logs, MainWindow.Instance.TakeScreenshot());
         ErrorSendThread.SendError(m_process.GetFailReasonError(), null, null);
         m_isErrorSent = true;
     }
 }