Skip to content

Commit

Permalink
(GH-262) source - proxy bypass logging
Browse files Browse the repository at this point in the history
Log when a source is configured to bypass a proxy.
  • Loading branch information
ferventcoder committed Feb 28, 2017
1 parent bf5f78b commit 96dedbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/chocolatey/infrastructure.app/nuget/NugetCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static IPackageRepository GetRemoteRepository(ChocolateyConfiguration con

if (!string.IsNullOrWhiteSpace(configuration.Proxy.BypassList))
{
"chocolatey".Log().Debug("Proxy has a bypass list of {0}");
proxy.BypassList = configuration.Proxy.BypassList.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
}

Expand All @@ -104,7 +105,11 @@ public static IPackageRepository GetRemoteRepository(ChocolateyConfiguration con
source = machineSource.Key;
}

if (machineSource != null) bypassProxy = machineSource.BypassProxy;
if (machineSource != null)
{
"chocolatey".Log().Debug("Source '{0}' is configured to bypass proxies.".format_with(source));
bypassProxy = machineSource.BypassProxy;
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit 96dedbe

Please sign in to comment.