Browse Source

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

Ruben 4 tháng trước cách đây
mục cha
commit
d461ee8596
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
     }
 
-    public static void LogDebug(string appleScriptManagerName, string executeAppleScriptAsyncName, string exceptionMessage)
+    public static void LogDebug(string className, string methodName, string exceptionMessage)
     {
         Debug.WriteLine(
-            $"\n[{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}] {appleScriptManagerName}.{executeAppleScriptAsyncName} exception: {exceptionMessage}");
+            $"\n[{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}] {className}.{methodName} exception: {exceptionMessage}");
     }
 }