Add warning log message to say which attachment fails validation in order to pin down problems with "Inconsistent Attachment State"
parent
138a5e04b8
commit
2eaadf2dc0
|
@ -3525,12 +3525,22 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
foreach (SceneObjectGroup gobj in m_attachments)
|
foreach (SceneObjectGroup gobj in m_attachments)
|
||||||
{
|
{
|
||||||
if (gobj == null)
|
if (gobj == null)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat(
|
||||||
|
"[SCENE PRESENCE]: Failed to validate an attachment for {0} since it was null", Name);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (gobj.IsDeleted)
|
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 false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue