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:
parent
0666436a59
commit
80aee52a61
|
|
@ -158,7 +158,7 @@ class Program
|
|||
siteFiles.Add(new SiteFile(x));
|
||||
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}");
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public partial class SiteFile
|
|||
{
|
||||
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.
|
||||
// ConverterFunctions ALWAYS accept just the FileInfo, and ProjectSettings passed at convert time.
|
||||
ConverterFunction = Conversions.Mappings.GetValueOrDefault(info.Extension, Conversions.RawCpy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user