diff --git a/src/Magdys.ScreenPrivacyWatermark.App/Forms/MainForm.cs b/src/Magdys.ScreenPrivacyWatermark.App/Forms/MainForm.cs index ea0ea02..df796f5 100644 --- a/src/Magdys.ScreenPrivacyWatermark.App/Forms/MainForm.cs +++ b/src/Magdys.ScreenPrivacyWatermark.App/Forms/MainForm.cs @@ -163,7 +163,7 @@ private void TimeProcessAccessPolicyCheck_Tick(object sender, EventArgs e) { #if !(DEBUG) - _logger.LogTrace(_loggerExecutingText, nameof(TimeProcessPolicyCheck_Tick), Text); + _logger.LogTrace("Executing {e}.", nameof(TimeProcessAccessPolicyCheck_Tick)); #endif if (_processAccessPolicyOptions.AllowedProcessesList.Length == 0) { @@ -226,7 +226,7 @@ private void TimeProcessAccessPolicyCheck_Tick(object sender, EventArgs e) #if !(DEBUG) - _logger.LogTrace(_loggerExecutedText, nameof(TimeProcessPolicyCheck_Tick), Text); + _logger.LogTrace("Executed {e}.", nameof(TimeProcessAccessPolicyCheck_Tick)); #endif }