diff --git a/src/DiffEngineTray/Tracker.cs b/src/DiffEngineTray/Tracker.cs index d0207ef9..92212517 100644 --- a/src/DiffEngineTray/Tracker.cs +++ b/src/DiffEngineTray/Tracker.cs @@ -115,6 +115,8 @@ public TrackedMove AddMove( } var solutionName = SolutionDirectoryFinder.Find(key); + + Log.Information("MoveAdded. Target:{target}, CanKill:{canKill}, ProcessId:{processId}, CommandLine:{commandLine}", target, canKill, processId, $"{exe} {arguments}"); return new TrackedMove(temp, key, exe, arguments, canKill, process, solutionName); }, updateValueFactory: (key, existing) => @@ -131,6 +133,7 @@ public TrackedMove AddMove( } var solutionName = SolutionDirectoryFinder.Find(key); + Log.Information("MoveUpdated. Target:{target}, CanKill:{canKill}, ProcessId:{processId}, CommandLine:{commandLine}", target, canKill, processId, $"{exe} {arguments}"); return new TrackedMove(temp, key, exe, arguments, canKill, process, solutionName); }); } @@ -142,9 +145,14 @@ public TrackedDelete AddDelete(string file) addValueFactory: key => { var solutionName = SolutionDirectoryFinder.Find(key); + Log.Information("DeleteAdded. File:{file}", file, solutionName); return new TrackedDelete(key, solutionName); }, - updateValueFactory: (s, existing) => existing); + updateValueFactory: (s, existing) => + { + Log.Information("DeleteUpdated. File:{file}", file); + return existing; + }); } public void Accept(TrackedDelete delete) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 1179017e..e66f3c80 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,7 +2,7 @@ CS1591;CS0649 - 6.4.2 + 6.4.3 1.0.0 Testing, Snapshot, Diff, Compare Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.