From c10e000559eafc800f9b5294f6d6e8446d1945a2 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Thu, 9 Sep 2021 09:23:28 +1200 Subject: [PATCH] Add logger to DisplayProfileForm --- displaymagician/uiforms/displayprofileform.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/displaymagician/uiforms/displayprofileform.cs b/displaymagician/uiforms/displayprofileform.cs index f5cd025..1509888 100644 --- a/displaymagician/uiforms/displayprofileform.cs +++ b/displaymagician/uiforms/displayprofileform.cs @@ -21,6 +21,8 @@ namespace DisplayMagician.UIForms private ProfileAdaptor _profileAdaptor = new ProfileAdaptor(); //public static Dictionary profileValidity = new Dictionary(); + private static readonly NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public DisplayProfileForm() { InitializeComponent(); @@ -54,6 +56,8 @@ namespace DisplayMagician.UIForms // Apply the Profile if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful) { + logger.Error($"DisplayProfileForm/Apply_Click: Waiting 0.5 sec for the display to apply"); + System.Threading.Thread.Sleep(500); ChangeSelectedProfile(_selectedProfile); } }