Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/record-all-saved-tims
Browse files Browse the repository at this point in the history
# Conflicts:
#	GChan/Trackers/Thread.cs
  • Loading branch information
Issung committed Aug 19, 2023
2 parents 53d3b7d + 74f0d8e commit 4aac3ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions GChan/ImageLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 4 additions & 0 deletions GChan/Trackers/Thread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion GChan/nlog.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
</targets>

<rules>
<logger name="*" minlevel="Trace" writeTo="console,debugger,file" />
<logger name="*" minlevel="Info" writeTo="console,debugger,file" />
</rules>
</nlog>

0 comments on commit 4aac3ca

Please sign in to comment.