From f02e01443453a8f40c92defb99a07996ecae002a Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 4 Jan 2022 16:10:13 +0000 Subject: [PATCH] move logging around in json writer class --- QuestValidator.Common/JsonWriter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QuestValidator.Common/JsonWriter.cs b/QuestValidator.Common/JsonWriter.cs index 1ffa70f..1729885 100644 --- a/QuestValidator.Common/JsonWriter.cs +++ b/QuestValidator.Common/JsonWriter.cs @@ -14,8 +14,6 @@ namespace QuestValidator.Common var outputPath = $"{workingPath}\\output\\{outputFolderName}"; DiskHelpers.CreateDirIfDoesntExist(outputPath); - Console.WriteLine($"Writing json file to {outputPath}"); - var options = new JsonSerializerOptions { WriteIndented = true, @@ -25,6 +23,9 @@ namespace QuestValidator.Common }; var json = JsonSerializer.Serialize(itemToSerialise, options); File.WriteAllText($"{outputPath}\\{fileName}.json", json); + + + Console.WriteLine($"wrote {fileName}.json file to {outputPath}"); } } }