From 5d790261350b61e1d07e72f2c0fa076185cf564b Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Wed, 26 Jun 2024 05:25:11 +0100 Subject: [PATCH] fix(ConverterFunctions): Correct logging Correct the logging to accurately reflect what is happening in the code. As StringReplace now does more than just BaseUrl replacing --- SiteFile/SiteFile.ConverterFunctions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SiteFile/SiteFile.ConverterFunctions.cs b/SiteFile/SiteFile.ConverterFunctions.cs index fc53443..6afa619 100644 --- a/SiteFile/SiteFile.ConverterFunctions.cs +++ b/SiteFile/SiteFile.ConverterFunctions.cs @@ -112,7 +112,7 @@ public static class Conversions{ string tmpFile = string.Empty; if (StringReplaceFiletypes.Contains(file.Extension)) { - Log.Information("Replacing baseurl for file {f}",file.FullName); + Log.Information("calling string replace for file {f}",file.FullName); tmpFile = Path.Join(Path.GetTempPath(),"pandoc",file.Name); Directory.CreateDirectory(Path.GetDirectoryName(tmpFile)!); // NOTE: It is practially impossible that this would actually return null File.Create(tmpFile).Close(); // TODO: Use the filestream provided by File.Create within a using block to write the text @@ -120,7 +120,7 @@ public static class Conversions{ if (template is not null) { - Log.Information("Replacing baseurl in template file"); + Log.Information("calling string replace for template file"); string tmpTemplateFile = Path.Join(Path.GetTempPath(),"pandoc",template.Name); Directory.CreateDirectory(Path.GetDirectoryName(tmpTemplateFile)!); // NOTE: It is practially impossible that this would actually return null File.Create(tmpTemplateFile).Close(); // TODO: Use the filestream provided by File.Create within a using block to write the text