fix(Logging): Clean up Logging

change the Sitefiles information count to actually use the count and not
the sitefiles list itself.

Change the logging of file extensions in SiteFile from Information to
Debug
This commit is contained in:
Robert Morrison 2024-06-26 05:42:50 +01:00
parent 0666436a59
commit 80aee52a61
Signed by: robert
GPG Key ID: 73E012EB3F4EC696
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ class Program
siteFiles.Add(new SiteFile(x)); siteFiles.Add(new SiteFile(x));
Log.Debug("Found file {file}",x.FullName); Log.Debug("Found file {file}",x.FullName);
}); });
Log.Information("SiteFiles Found {count}", siteFiles, siteFiles.Count); Log.Information("SiteFiles Found {count}", siteFiles.Count);
Console.WriteLine($"Converting {siteFiles.Count} files from {settings.InputDirectory.FullName} to {settings.OutputDirectory.FullName}"); Console.WriteLine($"Converting {siteFiles.Count} files from {settings.InputDirectory.FullName} to {settings.OutputDirectory.FullName}");

View File

@ -29,7 +29,7 @@ public partial class SiteFile
{ {
info = fileInfo; info = fileInfo;
Log.Information("{file} extension is {ext}",fileInfo.FullName, fileInfo.Extension); Log.Debug("{file} extension is {ext}",fileInfo.FullName, fileInfo.Extension);
// Using this Ensures that the ConverterFunction is Always set. // Using this Ensures that the ConverterFunction is Always set.
// ConverterFunctions ALWAYS accept just the FileInfo, and ProjectSettings passed at convert time. // ConverterFunctions ALWAYS accept just the FileInfo, and ProjectSettings passed at convert time.
ConverterFunction = Conversions.Mappings.GetValueOrDefault(info.Extension, Conversions.RawCpy); ConverterFunction = Conversions.Mappings.GetValueOrDefault(info.Extension, Conversions.RawCpy);