mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
If an exception makes it to the top of a JobEngine request, catch and log instead of letting it terminate the simulator...
This commit is contained in:
@@ -246,7 +246,16 @@ namespace OpenSim.Framework.Monitoring
|
||||
if (LogLevel >= 1)
|
||||
m_log.DebugFormat("[JOB ENGINE]: Processing job {0}", m_currentJob.Name);
|
||||
|
||||
m_currentJob.Callback.Invoke(m_currentJob.O);
|
||||
try
|
||||
{
|
||||
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)
|
||||
m_log.DebugFormat("[JOB ENGINE]: Processed job {0}", m_currentJob.Name);
|
||||
|
||||
Reference in New Issue
Block a user