aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-10-11 22:24:40 +0100
committerMelanie2011-10-11 22:24:40 +0100
commit6e6c70be15a42b92e582564823fd121d512a7757 (patch)
tree145e814b8aab24cd845bdef1d41836663635a269 /OpenSim
parentMerge commit 'aadf7dd91cdeb98b48cd81c5db06481593aff993' into bigmerge (diff)
parentMake debug statements in ScenePresence consistent and add a few more (diff)
downloadopensim-SC_OLD-6e6c70be15a42b92e582564823fd121d512a7757.zip
opensim-SC_OLD-6e6c70be15a42b92e582564823fd121d512a7757.tar.gz
opensim-SC_OLD-6e6c70be15a42b92e582564823fd121d512a7757.tar.bz2
opensim-SC_OLD-6e6c70be15a42b92e582564823fd121d512a7757.tar.xz
Merge commit 'fa9291512aabbe72cb6b1b0b7a9af79d9b05d253' into bigmerge
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs22
1 files changed, 13 insertions, 9 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index ef291f7..fc8f8b9 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -71,7 +71,7 @@ namespace OpenSim.Region.Framework.Scenes
71 { 71 {
72// ~ScenePresence() 72// ~ScenePresence()
73// { 73// {
74// m_log.Debug("[ScenePresence] Destructor called"); 74// m_log.Debug("[SCENE PRESENCE] Destructor called");
75// } 75// }
76 76
77 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 77 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -542,7 +542,7 @@ namespace OpenSim.Region.Framework.Scenes
542 } 542 }
543 catch (Exception e) 543 catch (Exception e)
544 { 544 {
545 m_log.Error("[SCENEPRESENCE]: ABSOLUTE POSITION " + e.Message); 545 m_log.Error("[SCENE PRESENCE]: ABSOLUTE POSITION " + e.Message);
546 } 546 }
547 } 547 }
548 548
@@ -597,7 +597,7 @@ namespace OpenSim.Region.Framework.Scenes
597 } 597 }
598 catch (Exception e) 598 catch (Exception e)
599 { 599 {
600 m_log.Error("[SCENEPRESENCE]: VELOCITY " + e.Message); 600 m_log.Error("[SCENE PRESENCE]: VELOCITY " + e.Message);
601 } 601 }
602 } 602 }
603 603
@@ -1150,7 +1150,7 @@ namespace OpenSim.Region.Framework.Scenes
1150 Animator.ResetAnimations(); 1150 Animator.ResetAnimations();
1151 1151
1152// m_log.DebugFormat( 1152// m_log.DebugFormat(
1153// "[SCENEPRESENCE]: Downgrading root agent {0}, {1} to a child agent in {2}", 1153// "[SCENE PRESENCE]: Downgrading root agent {0}, {1} to a child agent in {2}",
1154// Name, UUID, m_scene.RegionInfo.RegionName); 1154// Name, UUID, m_scene.RegionInfo.RegionName);
1155 1155
1156 // Don't zero out the velocity since this can cause problems when an avatar is making a region crossing, 1156 // Don't zero out the velocity since this can cause problems when an avatar is making a region crossing,
@@ -1326,7 +1326,7 @@ namespace OpenSim.Region.Framework.Scenes
1326 m_callbackURI = null; 1326 m_callbackURI = null;
1327 } 1327 }
1328 1328
1329 //m_log.DebugFormat("Completed movement"); 1329 m_log.DebugFormat("[SCENE PRESENCE] Completed movement");
1330 1330
1331 m_controllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look); 1331 m_controllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look);
1332 SendInitialData(); 1332 SendInitialData();
@@ -2768,7 +2768,7 @@ namespace OpenSim.Region.Framework.Scenes
2768 Vector3 pos = m_pos; 2768 Vector3 pos = m_pos;
2769 pos.Z += m_appearance.HipOffset; 2769 pos.Z += m_appearance.HipOffset;
2770 2770
2771 //m_log.DebugFormat("[SCENEPRESENCE]: TerseUpdate: Pos={0} Rot={1} Vel={2}", m_pos, m_bodyRot, m_velocity); 2771 //m_log.DebugFormat("[SCENE PRESENCE]: " + Name + " sending TerseUpdate to " + remoteClient.Name + " : Pos={0} Rot={1} Vel={2}", m_pos, m_bodyRot, m_velocity);
2772 2772
2773 remoteClient.SendPrimUpdate( 2773 remoteClient.SendPrimUpdate(
2774 this, 2774 this,
@@ -2855,6 +2855,7 @@ namespace OpenSim.Region.Framework.Scenes
2855 /// </summary> 2855 /// </summary>
2856 private void SendInitialData() 2856 private void SendInitialData()
2857 { 2857 {
2858 m_log.DebugFormat("[SCENE PRESENCE] SendInitialData: {0} ({1})", Name, UUID);
2858 // Moved this into CompleteMovement to ensure that m_appearance is initialized before 2859 // Moved this into CompleteMovement to ensure that m_appearance is initialized before
2859 // the inventory arrives 2860 // the inventory arrives
2860 // m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance); 2861 // m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance);
@@ -2899,10 +2900,11 @@ namespace OpenSim.Region.Framework.Scenes
2899 /// </summary> 2900 /// </summary>
2900 public void SendAvatarDataToAllAgents() 2901 public void SendAvatarDataToAllAgents()
2901 { 2902 {
2903 m_log.DebugFormat("[SCENE PRESENCE] SendAvatarDataToAllAgents: {0} ({1})", Name, UUID);
2902 // only send update from root agents to other clients; children are only "listening posts" 2904 // only send update from root agents to other clients; children are only "listening posts"
2903 if (IsChildAgent) 2905 if (IsChildAgent)
2904 { 2906 {
2905 m_log.Warn("[SCENEPRESENCE] attempt to send avatar data from a child agent"); 2907 m_log.Warn("[SCENE PRESENCE] attempt to send avatar data from a child agent");
2906 return; 2908 return;
2907 } 2909 }
2908 2910
@@ -2952,7 +2954,7 @@ namespace OpenSim.Region.Framework.Scenes
2952 /// <param name="avatar"></param> 2954 /// <param name="avatar"></param>
2953 public void SendAvatarDataToAgent(ScenePresence avatar) 2955 public void SendAvatarDataToAgent(ScenePresence avatar)
2954 { 2956 {
2955// m_log.WarnFormat("[SP] Send avatar data from {0} to {1}",m_uuid,avatar.ControllingClient.AgentId); 2957 m_log.DebugFormat("[SCENE PRESENCE] SendAvatarDataToAgent from {0} ({1}) to {2} ({3})", Name, UUID, avatar.Name, avatar.UUID);
2956 2958
2957 avatar.ControllingClient.SendAvatarDataImmediate(this); 2959 avatar.ControllingClient.SendAvatarDataImmediate(this);
2958 if (Animator != null) 2960 if (Animator != null)
@@ -2965,10 +2967,11 @@ namespace OpenSim.Region.Framework.Scenes
2965 /// </summary> 2967 /// </summary>
2966 public void SendAppearanceToAllOtherAgents() 2968 public void SendAppearanceToAllOtherAgents()
2967 { 2969 {
2970 m_log.DebugFormat("[SCENE PRESENCE] SendAppearanceToAllOtherAgents: {0} ({1})", Name, UUID);
2968 // only send update from root agents to other clients; children are only "listening posts" 2971 // only send update from root agents to other clients; children are only "listening posts"
2969 if (IsChildAgent) 2972 if (IsChildAgent)
2970 { 2973 {
2971 m_log.Warn("[SCENEPRESENCE] attempt to send avatar data from a child agent"); 2974 m_log.Warn("[SCENE PRESENCE] attempt to send avatar data from a child agent");
2972 return; 2975 return;
2973 } 2976 }
2974 2977
@@ -2994,6 +2997,7 @@ namespace OpenSim.Region.Framework.Scenes
2994 /// </summary> 2997 /// </summary>
2995 public void SendOtherAgentsAppearanceToMe() 2998 public void SendOtherAgentsAppearanceToMe()
2996 { 2999 {
3000 m_log.DebugFormat("[SCENE PRESENCE] SendOtherAgentsAppearanceToMe: {0} ({1})", Name, UUID);
2997 m_perfMonMS = Util.EnvironmentTickCount(); 3001 m_perfMonMS = Util.EnvironmentTickCount();
2998 3002
2999 int count = 0; 3003 int count = 0;