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.
parent
9fa8d84598
commit
48d1cca303
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue