Skip to content

Commit

Permalink
(GH-14) Log source type evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Jun 29, 2015
1 parent 909ab18 commit 37047fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chocolatey/infrastructure.app/runners/GenericRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ now be in a bad state. Only official builds are to be trusted.
return command;
}

private static void set_source_type(ChocolateyConfiguration config)
private void set_source_type(ChocolateyConfiguration config)
{
var sourceType = SourceType.normal;
Enum.TryParse(config.Sources, true, out sourceType);
config.SourceType = sourceType;

this.Log().Debug(()=> "The source '{0}' evaluated to a '{1}' source type".format_with(config.Sources,sourceType.to_string()));
}

public void run(ChocolateyConfiguration config, Container container, bool isConsole, Action<ICommand> parseArgs)
Expand Down

0 comments on commit 37047fa

Please sign in to comment.