From 6b3c824f3eab56314be2da553b2b35ec9dcb2740 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 6 Jun 2017 23:04:25 +0100 Subject: [PATCH] Debug messages go to debug console. --- DiscImageChef.Filters/BZip2.cs | 3 ++- DiscImageChef.Filters/LZip.cs | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 DiscImageChef.Filters/LZip.cs diff --git a/DiscImageChef.Filters/BZip2.cs b/DiscImageChef.Filters/BZip2.cs index 9aab5eba8..8452314f6 100644 --- a/DiscImageChef.Filters/BZip2.cs +++ b/DiscImageChef.Filters/BZip2.cs @@ -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; diff --git a/DiscImageChef.Filters/LZip.cs b/DiscImageChef.Filters/LZip.cs new file mode 100644 index 000000000..57304dbf9 --- /dev/null +++ b/DiscImageChef.Filters/LZip.cs @@ -0,0 +1,41 @@ +// /*************************************************************************** +// The Disc Image Chef +// ---------------------------------------------------------------------------- +// +// Filename : LZip.cs +// Author(s) : Natalia Portillo +// +// Component : Component +// +// --[ Description ] ---------------------------------------------------------- +// +// Description +// +// --[ License ] -------------------------------------------------------------- +// +// This library is free software; you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2017 Natalia Portillo +// ****************************************************************************/ +using System; +namespace DiscImageChef.Filters +{ + public class LZip + { + public LZip() + { + } + } +}