From 561aa6ec3b4f018a4e76d1a57c7ffd6f0e7ded70 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 17 Jul 2010 22:25:01 +0000 Subject: WinGui: - Some tweaks to the Logging code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3445 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/HandBrake.ApplicationServices/Services/Scan.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win/C#/HandBrake.ApplicationServices/Services/Scan.cs') diff --git a/win/C#/HandBrake.ApplicationServices/Services/Scan.cs b/win/C#/HandBrake.ApplicationServices/Services/Scan.cs index 039cb3f3d..04c35e36f 100644 --- a/win/C#/HandBrake.ApplicationServices/Services/Scan.cs +++ b/win/C#/HandBrake.ApplicationServices/Services/Scan.cs @@ -191,10 +191,11 @@ namespace HandBrake.ApplicationServices.Services // Write the Buffer out to file. StreamWriter scanLog = new StreamWriter(dvdInfoPath); + scanLog.WriteLine(Logging.CreateCliLogHeader(null)); scanLog.Write(this.readData.Buffer); scanLog.Flush(); scanLog.Close(); - logBuffer = readData.Buffer; + logBuffer.AppendLine(this.readData.Buffer.ToString()); IsScanning = false; @@ -268,6 +269,7 @@ namespace HandBrake.ApplicationServices.Services { logFilePosition = 0; logBuffer = new StringBuilder(); + logBuffer.AppendLine(Logging.CreateCliLogHeader(null)); } /// -- cgit v1.2.3