diff --git a/GChan/ImageLink.cs b/GChan/ImageLink.cs index fabba11..9bb47e5 100644 --- a/GChan/ImageLink.cs +++ b/GChan/ImageLink.cs @@ -52,8 +52,6 @@ public string GenerateFilename(ImageFileNameFormat format) _ => throw new ArgumentException("Given value for 'format' is unknown.") }; - logger.Info($"Filename generated: {result}. Length: {result.Length}"); - return result; } diff --git a/GChan/Trackers/Thread.cs b/GChan/Trackers/Thread.cs index e6b4e82..4f1c6d5 100644 --- a/GChan/Trackers/Thread.cs +++ b/GChan/Trackers/Thread.cs @@ -115,13 +115,17 @@ private void DownloadImages() { if (!SavedIds.Contains(link.Tim)) { +#if DEBUG logger.Debug($"Downloading file {link} because its Tim is not in the saved set."); +#endif Utils.DownloadToDir(link, SaveTo); SavedIds.Add(link.Tim); } else { +#if DEBUG logger.Debug($"Skipping downloading file {link} because its Tim is in the saved set."); +#endif } } }); diff --git a/GChan/nlog.config b/GChan/nlog.config index 7a2c6b3..2001387 100644 --- a/GChan/nlog.config +++ b/GChan/nlog.config @@ -12,6 +12,6 @@ - + \ No newline at end of file