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.

bullet-2.82
Oren Hurvitz 2014-06-12 15:02:25 +03:00
parent 9fa8d84598
commit 48d1cca303
1 changed files with 7 additions and 1 deletions

View File

@ -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)
{