Skip to content

Commit bdb5ab8

Browse files
committed
Switched to mentioning the exact executed cmdlet line with parameters in the logs to be really able to trace down the exact execution that has been done
1 parent 470c4d2 commit bdb5ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/Base/BasePSCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class BasePSCmdlet : PSCmdlet
2121
/// </summary>
2222
protected override void BeginProcessing()
2323
{
24-
LogDebug($"Cmdlet execution started for {MyInvocation.MyCommand.Name}");
24+
LogDebug($"Cmdlet execution started for {MyInvocation.Line}");
2525
base.BeginProcessing();
2626

2727
CheckForDeprecationAttributes();
@@ -67,7 +67,7 @@ protected override void ProcessRecord()
6767
protected override void EndProcessing()
6868
{
6969
base.EndProcessing();
70-
LogDebug($"Cmdlet execution done for {MyInvocation.MyCommand.Name}");
70+
LogDebug($"Cmdlet execution done for {MyInvocation.Line}");
7171
}
7272

7373
/// <summary>

0 commit comments

Comments
 (0)