From a108fcac957dd2283fb8904207addda6dc7582f0 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 25 Apr 2014 21:34:29 +0100 Subject: Restore overload mode accidentally disabled in a prior commit. Add a new config option, LogOverloads, to log when a thread pool overload occurs. This option defaults to "True" because the logging data is useful for diagnosing threading issues. --- OpenSim/Region/Application/OpenSimBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 9d36986..feb3cf8 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -154,6 +154,12 @@ namespace OpenSim proxyUrl = networkConfig.GetString("proxy_url", ""); proxyOffset = Int32.Parse(networkConfig.GetString("proxy_offset", "0")); } + + IConfig startupConfig = Config.Configs["Startup"]; + if (startupConfig != null) + { + Util.LogOverloads = startupConfig.GetBoolean("LogOverloads", true); + } } protected virtual void LoadPlugins() -- cgit v1.1