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
This commit is contained in:
parent
53344de6ea
commit
5d79026135
|
|
@ -112,7 +112,7 @@ public static class Conversions{
|
||||||
string tmpFile = string.Empty;
|
string tmpFile = string.Empty;
|
||||||
if (StringReplaceFiletypes.Contains(file.Extension))
|
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);
|
tmpFile = Path.Join(Path.GetTempPath(),"pandoc",file.Name);
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(tmpFile)!); // NOTE: It is practially impossible that this would actually return null
|
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
|
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)
|
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);
|
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
|
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
|
File.Create(tmpTemplateFile).Close(); // TODO: Use the filestream provided by File.Create within a using block to write the text
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user