Only save crashes to disk if save_crashes in OpenSim.ini is true (false by default).

0.6.6-post-fixes
Jeff Ames 2009-06-01 18:45:36 +00:00
parent eb330f71be
commit c6f616049c
1 changed files with 21 additions and 18 deletions

View File

@ -160,6 +160,8 @@ namespace OpenSim
m_log.ErrorFormat("[APPLICATION]: {0}", msg); m_log.ErrorFormat("[APPLICATION]: {0}", msg);
if (m_saveCrashDumps)
{
// Log exception to disk // Log exception to disk
try try
{ {
@ -182,6 +184,7 @@ namespace OpenSim
{ {
m_log.ErrorFormat("[CRASH LOGGER CRASHED]: {0}", e2); m_log.ErrorFormat("[CRASH LOGGER CRASHED]: {0}", e2);
} }
}
_IsHandlingException = false; _IsHandlingException = false;
} }