diff --git a/Src/Compilers/Core/VBCSCompiler/App.config b/Src/Compilers/Core/VBCSCompiler/App.config index 222013fe23fb9bdb9b9689bbc64a7a09d9b4550f..59c9d471da8c489b278d342ad65b6974b3db9a24 100644 --- a/Src/Compilers/Core/VBCSCompiler/App.config +++ b/Src/Compilers/Core/VBCSCompiler/App.config @@ -7,7 +7,7 @@ - diff --git a/Src/Compilers/Core/VBCSCompiler/ServerDispatcher.cs b/Src/Compilers/Core/VBCSCompiler/ServerDispatcher.cs index 4d3359e5cc72ab082867e6c119934467f09bb602..0755acaee682bdbe1a96983c55dcc01b47f9c16e 100644 --- a/Src/Compilers/Core/VBCSCompiler/ServerDispatcher.cs +++ b/Src/Compilers/Core/VBCSCompiler/ServerDispatcher.cs @@ -42,6 +42,9 @@ partial class ServerDispatcher /// public static int Main(string[] args) { + CompilerServerLogger.Initialize("SRV"); + CompilerServerLogger.Log("Process started"); + int dieTimeout; // Try to get the die timeout from the app.config file. // Set to default if any failures @@ -58,16 +61,16 @@ public static int Main(string[] args) // seconds, not milliseconds dieTimeout *= 1000; } + CompilerServerLogger.Log("Die timeout is: " + dieTimeout + "milliseconds."); } - catch (ConfigurationErrorsException) + catch (ConfigurationErrorsException e) { dieTimeout = DefaultServerDieTimeout; + CompilerServerLogger.LogException(e, "Could not read AppSettings"); } CompilerFatalError.Handler = FailFast.OnFatalException; - CompilerServerLogger.Initialize("SRV"); - CompilerServerLogger.Log("Process started"); var dispatcher = new ServerDispatcher(BuildProtocolConstants.PipeName, new CompilerRequestHandler(), dieTimeout);