Browse Source

Refactor `LogDebug` method in `DebugHelper`: rename parameters for generalization (`appleScriptManagerName` and `executeAppleScriptAsyncName` to `className` and `methodName`).

Ruben 4 months ago
parent
commit
d461ee8596
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/PicView.Core/DebugTools/DebugHelper.cs

+ 2 - 2
src/PicView.Core/DebugTools/DebugHelper.cs

@@ -35,9 +35,9 @@ public static class DebugHelper
         Debug.WriteLine(exception.StackTrace + Environment.NewLine);
         Debug.WriteLine(exception.StackTrace + Environment.NewLine);
     }
     }
 
 
-    public static void LogDebug(string appleScriptManagerName, string executeAppleScriptAsyncName, string exceptionMessage)
+    public static void LogDebug(string className, string methodName, string exceptionMessage)
     {
     {
         Debug.WriteLine(
         Debug.WriteLine(
-            $"\n[{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}] {appleScriptManagerName}.{executeAppleScriptAsyncName} exception: {exceptionMessage}");
+            $"\n[{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}] {className}.{methodName} exception: {exceptionMessage}");
     }
     }
 }
 }