Debug messages go to debug console.

This commit is contained in:
2017-06-06 23:04:25 +01:00
parent 3754c622f4
commit 6b3c824f3e
2 changed files with 43 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
using System;
using System.IO;
using DiscImageChef.Console;
using SharpCompress.Compressors;
using SharpCompress.Compressors.BZip2;
@@ -202,7 +203,7 @@ namespace DiscImageChef.Filters
DateTime start = DateTime.UtcNow;
decompressedSize = GuessSize(dataStream);
DateTime end = DateTime.UtcNow;
System.Console.WriteLine("Took {0} seconds to guess size is {1}", (end - start).TotalSeconds, decompressedSize);
DicConsole.DebugWriteLine("BZip2 filter", "Took {0} seconds to guess size is {1}", (end - start).TotalSeconds, decompressedSize);
FileInfo fi = new FileInfo(path);
creationTime = fi.CreationTimeUtc;