Skip to content

Commit 4441303

Browse files
authored
Merge pull request #20625 from github/mbg/csharp/proxy-log-messages
2 parents 66f95bc + 47632cd commit 4441303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNetCliInvoker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private ProcessStartInfo MakeDotnetStartInfo(string args, string? workingDirecto
4444
// Configure the proxy settings, if applicable.
4545
if (this.proxy != null)
4646
{
47-
logger.LogInfo($"Setting up Dependabot proxy at {this.proxy.Address}");
47+
logger.LogDebug($"Configuring environment variables for the Dependabot proxy at {this.proxy.Address}");
4848

4949
startInfo.EnvironmentVariables["HTTP_PROXY"] = this.proxy.Address;
5050
startInfo.EnvironmentVariables["HTTPS_PROXY"] = this.proxy.Address;
@@ -57,11 +57,11 @@ private ProcessStartInfo MakeDotnetStartInfo(string args, string? workingDirecto
5757
private bool RunCommandAux(string args, string? workingDirectory, out IList<string> output, bool silent)
5858
{
5959
var dirLog = string.IsNullOrWhiteSpace(workingDirectory) ? "" : $" in {workingDirectory}";
60-
logger.LogInfo($"Running '{Exec} {args}'{dirLog}");
6160
var pi = MakeDotnetStartInfo(args, workingDirectory);
6261
var threadId = Environment.CurrentManagedThreadId;
6362
void onOut(string s) => logger.Log(silent ? Severity.Debug : Severity.Info, s, threadId);
6463
void onError(string s) => logger.LogError(s, threadId);
64+
logger.LogInfo($"Running '{Exec} {args}'{dirLog}");
6565
var exitCode = pi.ReadOutput(out output, onOut, onError);
6666
if (exitCode != 0)
6767
{

0 commit comments

Comments
 (0)