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;
|
ThreadFuncNum = threadFuncNum;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
LogThread = true;
|
LogThread = false;
|
||||||
Thread = null;
|
Thread = null;
|
||||||
Running = false;
|
Running = false;
|
||||||
Aborted = false;
|
Aborted = false;
|
||||||
|
@ -2181,6 +2181,12 @@ namespace OpenSim.Framework
|
||||||
(LogThreadPool >= 2) ? full : partial);
|
(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)
|
switch (FireAndForgetMethod)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue