浏览代码

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

Ruben 4 月之前
父节点
当前提交
d461ee8596
共有 1 个文件被更改,包括 2 次插入2 次删除
  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}");
     }
 }