From d8b3bbece9ee09b68b6707c276ce4101f91e2943 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 12 Jan 2020 15:56:17 +0200 Subject: Add session log to TFS PPC and Machine Studio. Related Work Items: #2306 --- .../TFS/TeamFoundationServicePPCClient.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs index c28c5fcba..eb5b8f283 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs @@ -134,6 +134,20 @@ namespace Tango.PPC.BugReporting.TFS } } + //Add session log file.. + if (MachineOperator.EnableSessionLogFile) + { + var file = MachineOperator.SessionLogger.LogFile; + var sessionLogFile = tempFolder.CreateImaginaryFile(); + File.Copy(file, sessionLogFile.Path); + item.Attachments.Add(new Attachment() + { + Description = "Session Log File", + FilePath = sessionLogFile.Path, + Name = Path.GetFileName(file), + }); + } + SystemInformationModel sysModel = new SystemInformationModel(); sysModel.ApplicationVersion = _applicationManager.Version.ToString(); sysModel.EmbeddedVersion = "N/A"; -- cgit v1.3.1