Skip to content

Commit 9bcb867

Browse files
committed
Merge pull request #424 from JakeGinnivan/fixLoggingNotSetupEarlyEnough
Logging was not initialised early enough causing a crash
2 parents 32a005a + f6221f0 commit 9bcb867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionExe/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static int VerifyArgumentsAndRun()
5555
return 0;
5656
}
5757

58+
ConfigureLogging(arguments);
5859
if (arguments.Init)
5960
{
6061
ConfigurationProvider.WriteSample(arguments.TargetPath, fileSystem);
@@ -71,7 +72,6 @@ static int VerifyArgumentsAndRun()
7172
arguments.Output = OutputType.BuildServer;
7273
}
7374

74-
ConfigureLogging(arguments);
7575
Logger.WriteInfo("Working directory: " + arguments.TargetPath);
7676

7777
SpecifiedArgumentRunner.Run(arguments, fileSystem);

0 commit comments

Comments
 (0)