From 48d1cca30338f087ccb26ec2d00dea183a32fff8 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Thu, 12 Jun 2014 15:02:25 +0300 Subject: [PATCH] Better logging of threadpool activity in Overload mode: if we didn't log "Queue threadfunc" for a particular thread then don't log "Run threadfunc" or "End threadfunc" for that thread either. --- OpenSim/Framework/Util.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 5c429ee483..2d0178e4b8 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -2000,7 +2000,7 @@ namespace OpenSim.Framework { ThreadFuncNum = threadFuncNum; this.context = context; - LogThread = true; + LogThread = false; Thread = null; Running = false; Aborted = false; @@ -2181,6 +2181,12 @@ namespace OpenSim.Framework (LogThreadPool >= 2) ? full : partial); } } + else + { + // Since we didn't log "Queue threadfunc", don't log "Run threadfunc" or "End threadfunc" either. + // Those log lines aren't useful when we don't know which function is running in the thread. + threadInfo.LogThread = false; + } switch (FireAndForgetMethod) {