Add warning log message to say which attachment fails validation in order to pin down problems with "Inconsistent Attachment State"

bulletsim
Justin Clark-Casey (justincc) 2011-08-22 23:28:37 +01:00
parent 138a5e04b8
commit 2eaadf2dc0
1 changed files with 10 additions and 0 deletions

View File

@ -3525,12 +3525,22 @@ namespace OpenSim.Region.Framework.Scenes
foreach (SceneObjectGroup gobj in m_attachments)
{
if (gobj == null)
{
m_log.WarnFormat(
"[SCENE PRESENCE]: Failed to validate an attachment for {0} since it was null", Name);
return false;
}
if (gobj.IsDeleted)
{
m_log.WarnFormat(
"[SCENE PRESENCE]: Failed to validate attachment {0} {1} for {2} since it had been deleted",
gobj.Name, gobj.UUID, Name);
return false;
}
}
}
return true;
}