Skip to content

Commit 74f8c46

Browse files
committed
C#: Add logging of the NuGet CLI command.
1 parent 62a81d4 commit 74f8c46

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
@@ -212,6 +212,7 @@ private bool TryRestoreNugetPackage(string packagesConfig)
212212
var threadId = Environment.CurrentManagedThreadId;
213213
void onOut(string s) => logger.LogDebug(s, threadId);
214214
void onError(string s) => logger.LogError(s, threadId);
215+
logger.LogInfo($"Running '{exe} {string.Join(" ", args)}'");
215216
var exitCode = pi.ReadOutput(out _, onOut, onError);
216217
if (exitCode != 0)
217218
{

0 commit comments

Comments
 (0)