If an exception makes it to the top of a JobEngine request, catch and log instead of letting it terminate the simulator...
parent
16a5e15443
commit
6c043dd6ff
|
@ -246,7 +246,16 @@ namespace OpenSim.Framework.Monitoring
|
||||||
if (LogLevel >= 1)
|
if (LogLevel >= 1)
|
||||||
m_log.DebugFormat("[JOB ENGINE]: Processing job {0}", m_currentJob.Name);
|
m_log.DebugFormat("[JOB ENGINE]: Processing job {0}", m_currentJob.Name);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
m_currentJob.Callback.Invoke(m_currentJob.O);
|
m_currentJob.Callback.Invoke(m_currentJob.O);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
m_log.Error(
|
||||||
|
string.Format(
|
||||||
|
"[JOB ENGINE]: Job {0} failed, continuing. Exception ", m_currentJob.Name), e);
|
||||||
|
}
|
||||||
|
|
||||||
if (LogLevel >= 1)
|
if (LogLevel >= 1)
|
||||||
m_log.DebugFormat("[JOB ENGINE]: Processed job {0}", m_currentJob.Name);
|
m_log.DebugFormat("[JOB ENGINE]: Processed job {0}", m_currentJob.Name);
|
||||||
|
|
Loading…
Reference in New Issue