Skip to content

Commit 983d936

Browse files
committed
C#: Log the NuGet CLI command before executing it.
1 parent 36395a3 commit 983d936

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/PackagesConfigRestorer.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ private bool TryRestoreNugetPackage(string packagesConfig)
217217
var threadId = Environment.CurrentManagedThreadId;
218218
void onOut(string s) => logger.LogDebug(s, threadId);
219219
void onError(string s) => logger.LogError(s, threadId);
220+
logger.LogInfo($"Running '{pi.FileName} {string.Join(" ", pi.ArgumentList)}'");
220221
var exitCode = pi.ReadOutput(out _, onOut, onError);
221222
if (exitCode != 0)
222223
{

0 commit comments

Comments
 (0)