replace debug msgs by others

avinationmerge
UbitUmarov 2014-08-03 19:00:01 +01:00
parent ed47874197
commit ca8b0e6a1d
3 changed files with 21 additions and 10 deletions

View File

@ -388,6 +388,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
Dictionary<SceneObjectGroup, string> scriptStates = new Dictionary<SceneObjectGroup, string>();
m_log.DebugFormat("[ATTACHMENTS MODULE]: enter PrepareScriptInstanceForSave loop");
foreach (SceneObjectGroup so in attachments)
{
// Scripts MUST be snapshotted before the object is
@ -398,13 +399,16 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
scriptStates[so] = PrepareScriptInstanceForSave(so, false);
}
m_log.DebugFormat("[ATTACHMENTS MODULE]: enter UpdateDetachedObject loop");
lock (sp.AttachmentsSyncLock)
{
foreach (SceneObjectGroup so in attachments)
UpdateDetachedObject(sp, so, scriptStates[so]);
m_log.DebugFormat("[ATTACHMENTS MODULE]: enter ClearAttachments");
sp.ClearAttachments();
}
m_log.DebugFormat("[ATTACHMENTS MODULE]: derez done");
}
public void DeleteAttachmentsFromScene(IScenePresence sp, bool silent)
@ -1014,6 +1018,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
// Remove the object from the scene so no more updates
// are sent. Doing this before the below changes will ensure
// updates can't cause "HUD artefacts"
m_log.WarnFormat("[ATTACHMENTS MODULE]: DeleteSceneObject");
m_scene.DeleteSceneObject(so, false, false);
// Prepare sog for storage
@ -1023,6 +1030,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
if (saveChanged)
{
m_log.WarnFormat("[ATTACHMENTS MODULE]: saveChanged true");
// We cannot use AbsolutePosition here because that would
// attempt to cross the prim as it is detached
so.ForEachPart(x => { x.GroupPosition = so.RootPart.AttachedPos; });
@ -1031,7 +1040,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
}
// Now, remove the scripts
m_log.WarnFormat("[ATTACHMENTS MODULE]: remove scripts");
so.RemoveScriptInstances(true);
m_log.WarnFormat("[ATTACHMENTS MODULE]: UpdateDetachedObject done");
}
protected SceneObjectGroup RezSingleAttachmentFromInventoryInternal(

View File

@ -1366,9 +1366,9 @@ namespace OpenSim.Region.Framework.Scenes
{
try
{
m_log.ErrorFormat("[EVENT MANAGER]: OnRemovePresenceDelegate: {0}",d.Target.ToString());
// m_log.ErrorFormat("[EVENT MANAGER]: OnRemovePresenceDelegate: {0}",d.Target.ToString());
d(agentId);
m_log.ErrorFormat("[EVENT MANAGER]: OnRemovePresenceDelegate done ");
// m_log.ErrorFormat("[EVENT MANAGER]: OnRemovePresenceDelegate done ");
}
catch (Exception e)
{
@ -2039,9 +2039,9 @@ namespace OpenSim.Region.Framework.Scenes
{
try
{
m_log.ErrorFormat("[EVENT MANAGER]: TriggerClientClosed: {0}", d.Target.ToString());
// m_log.ErrorFormat("[EVENT MANAGER]: TriggerClientClosed: {0}", d.Target.ToString());
d(ClientID, scene);
m_log.ErrorFormat("[EVENT MANAGER]: TriggerClientClosed done ");
// m_log.ErrorFormat("[EVENT MANAGER]: TriggerClientClosed done ");
}
catch (Exception e)

View File

@ -3640,17 +3640,17 @@ namespace OpenSim.Region.Framework.Scenes
}
m_eventManager.TriggerClientClosed(agentID, this);
m_log.Debug("[Scene]TriggerClientClosed done");
// m_log.Debug("[Scene]TriggerClientClosed done");
m_eventManager.TriggerOnRemovePresence(agentID);
m_log.Debug("[Scene]TriggerOnRemovePresence done");
// m_log.Debug("[Scene]TriggerOnRemovePresence done");
if (!isChildAgent)
{
if (AttachmentsModule != null)
{
m_log.Debug("[Scene]DeRezAttachments");
// m_log.Debug("[Scene]DeRezAttachments");
AttachmentsModule.DeRezAttachments(avatar);
m_log.Debug("[Scene]DeRezAttachments done");
// m_log.Debug("[Scene]DeRezAttachments done");
}
ForEachClient(
@ -3665,7 +3665,7 @@ namespace OpenSim.Region.Framework.Scenes
// It's possible for child agents to have transactions if changes are being made cross-border.
if (AgentTransactionsModule != null)
{
m_log.Debug("[Scene]RemoveAgentAssetTransactions");
// m_log.Debug("[Scene]RemoveAgentAssetTransactions");
AgentTransactionsModule.RemoveAgentAssetTransactions(agentID);
}
m_log.Debug("[Scene] The avatar has left the building");