Skip to content

Commit

Permalink
(chocolateyGH-1603) Ensure full path to log is used
Browse files Browse the repository at this point in the history
Use helper method in IFileSystem implementation to ensure that the full
path to the requested log file is used, rather than making it relative
to where Chocolatey is currently located.
  • Loading branch information
gep13 committed Mar 13, 2019
1 parent 2c273d3 commit a104083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey.console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static void Main(string[] args)

if (!string.IsNullOrWhiteSpace(config.AdditionalLogFileLocation))
{
Log4NetAppenderConfiguration.configure_additional_log_file(config.AdditionalLogFileLocation);
Log4NetAppenderConfiguration.configure_additional_log_file(fileSystem.get_full_path(config.AdditionalLogFileLocation));
}

report_version_and_exit_if_requested(args, config);
Expand Down

0 comments on commit a104083

Please sign in to comment.