From 7cdf77cbb930dca714f4e67fbcedaf09e59b3654 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 3 Jun 2023 22:55:53 +0200 Subject: [PATCH] Less logging clutter --- Tranga/Connector.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index aabdc2a..0aae075 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -117,18 +117,9 @@ public abstract class Connector string oldFilePath2 = Path.Join(downloadLocation, publication.folderName, $"{string.Concat(legalCharacters.Matches(chapter.name ?? ""))} - VC{chapter.chapterNumber} - {chapter.chapterNumber}.cbz"); string newFilePath = GetArchiveFilePath(publication, chapter); if (File.Exists(oldFilePath)) - { - logger?.WriteLine(this.GetType().ToString(), $"Moving old file {oldFilePath} -> {newFilePath}"); File.Move(oldFilePath, newFilePath); - }else if (File.Exists(oldFilePath2)) - { - logger?.WriteLine(this.GetType().ToString(), $"Moving old file {oldFilePath2} -> {newFilePath}"); + else if (File.Exists(oldFilePath2)) File.Move(oldFilePath2, newFilePath); - } - else - { - logger?.WriteLine(this.GetType().ToString(), $"No old files found:\n{oldFilePath}\n{oldFilePath2}"); - } return File.Exists(newFilePath); }