diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 4179dd38b3..845a9fe3e2 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs @@ -246,8 +246,12 @@ namespace OpenSim.Framework.Servers foreach (ProcessThread t in threads) { sb.Append("ID: " + t.Id + ", TotalProcessorTime: " + t.TotalProcessorTime + ", TimeRunning: " + - (DateTime.Now - t.StartTime) + ", Pri: " + t.CurrentPriority + ", State: " + t.ThreadState + - ", WaitReason: " + t.WaitReason + Environment.NewLine); + (DateTime.Now - t.StartTime) + ", Pri: " + t.CurrentPriority + ", State: " + t.ThreadState ); + if (t.ThreadState == System.Diagnostics.ThreadState.Wait) + sb.Append(", Reason: " + t.WaitReason + Environment.NewLine); + else + sb.Append(Environment.NewLine); + } } int workers = 0, ports = 0, maxWorkers = 0, maxPorts = 0;