aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorJeff Ames2008-03-17 17:10:53 +0000
committerJeff Ames2008-03-17 17:10:53 +0000
commit825c89e7ac2ab2d545e6a45323ee24acd31f6756 (patch)
treeee1e73db608dba71e4a4c63ce0459e8e25eeb505 /OpenSim/Region/ClientStack
parent* Remove uninformative exception traces from remoting errors (diff)
downloadopensim-SC_OLD-825c89e7ac2ab2d545e6a45323ee24acd31f6756.zip
opensim-SC_OLD-825c89e7ac2ab2d545e6a45323ee24acd31f6756.tar.gz
opensim-SC_OLD-825c89e7ac2ab2d545e6a45323ee24acd31f6756.tar.bz2
opensim-SC_OLD-825c89e7ac2ab2d545e6a45323ee24acd31f6756.tar.xz
Replaced some Console.WriteLine calls with writes to log.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 0a17b2f..d53201f 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -51,13 +51,13 @@ namespace OpenSim.Region.ClientStack
51 /// </summary> 51 /// </summary>
52 public class ClientView : IClientAPI 52 public class ClientView : IClientAPI
53 { 53 {
54 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
55
54 // ~ClientView() 56 // ~ClientView()
55 // { 57 // {
56 // System.Console.WriteLine("[CLIENTVIEW]: Destructor called"); 58 // m_log.Info("[CLIENTVIEW]: Destructor called");
57 // } 59 // }
58 60
59 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
60
61 /* static variables */ 61 /* static variables */
62 public static TerrainManager TerrainManager; 62 public static TerrainManager TerrainManager;
63 63
@@ -1820,7 +1820,7 @@ namespace OpenSim.Region.ClientStack
1820 public void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint) 1820 public void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint)
1821 { 1821 {
1822 ObjectAttachPacket attach = (ObjectAttachPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAttach); 1822 ObjectAttachPacket attach = (ObjectAttachPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAttach);
1823 System.Console.WriteLine("Attach object!"); 1823 Console.WriteLine("Attach object!");
1824 // TODO: don't create new blocks if recycling an old packet 1824 // TODO: don't create new blocks if recycling an old packet
1825 attach.AgentData.AgentID = AgentId; 1825 attach.AgentData.AgentID = AgentId;
1826 attach.AgentData.SessionID = m_sessionId; 1826 attach.AgentData.SessionID = m_sessionId;
@@ -2340,7 +2340,7 @@ namespace OpenSim.Region.ClientStack
2340 /// <returns></returns> 2340 /// <returns></returns>
2341 protected bool AgentTextureCached(IClientAPI simclient, Packet packet) 2341 protected bool AgentTextureCached(IClientAPI simclient, Packet packet)
2342 { 2342 {
2343 //System.Console.WriteLine("texture cached: " + packet.ToString()); 2343 //Console.WriteLine("texture cached: " + packet.ToString());
2344 AgentCachedTexturePacket cachedtex = (AgentCachedTexturePacket)packet; 2344 AgentCachedTexturePacket cachedtex = (AgentCachedTexturePacket)packet;
2345 AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse); 2345 AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse);
2346 // TODO: don't create new blocks if recycling an old packet 2346 // TODO: don't create new blocks if recycling an old packet
@@ -2368,7 +2368,7 @@ namespace OpenSim.Region.ClientStack
2368 protected bool MultipleObjUpdate(IClientAPI simClient, Packet packet) 2368 protected bool MultipleObjUpdate(IClientAPI simClient, Packet packet)
2369 { 2369 {
2370 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)packet; 2370 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)packet;
2371 // System.Console.WriteLine("new multi update packet " + multipleupdate.ToString()); 2371 // Console.WriteLine("new multi update packet " + multipleupdate.ToString());
2372 Scene tScene = (Scene)m_scene; 2372 Scene tScene = (Scene)m_scene;
2373 2373
2374 for (int i = 0; i < multipleupdate.ObjectData.Length; i++) 2374 for (int i = 0; i < multipleupdate.ObjectData.Length; i++)
@@ -2407,7 +2407,7 @@ namespace OpenSim.Region.ClientStack
2407 if (handlerUpdatePrimSinglePosition != null) 2407 if (handlerUpdatePrimSinglePosition != null)
2408 { 2408 {
2409 2409
2410 // System.Console.WriteLine("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z); 2410 // Console.WriteLine("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z);
2411 handlerUpdatePrimSinglePosition(localId, pos1, this); 2411 handlerUpdatePrimSinglePosition(localId, pos1, this);
2412 } 2412 }
2413 break; 2413 break;
@@ -2418,7 +2418,7 @@ namespace OpenSim.Region.ClientStack
2418 if (handlerUpdatePrimSingleRotation != null) 2418 if (handlerUpdatePrimSingleRotation != null)
2419 { 2419 {
2420 2420
2421 //System.Console.WriteLine("new tab rotation is " + rot.X + " , " + rot.Y + " , " + rot.Z + " , " + rot.W); 2421 //Console.WriteLine("new tab rotation is " + rot.X + " , " + rot.Y + " , " + rot.Z + " , " + rot.W);
2422 handlerUpdatePrimSingleRotation(localId, rot1, this); 2422 handlerUpdatePrimSingleRotation(localId, rot1, this);
2423 } 2423 }
2424 break; 2424 break;
@@ -2429,7 +2429,7 @@ namespace OpenSim.Region.ClientStack
2429 if (handlerUpdatePrimSingleRotation != null) 2429 if (handlerUpdatePrimSingleRotation != null)
2430 { 2430 {
2431 2431
2432 //System.Console.WriteLine("new mouse rotation is " + rot.X + " , " + rot.Y + " , " + rot.Z + " , " + rot.W); 2432 //Console.WriteLine("new mouse rotation is " + rot.X + " , " + rot.Y + " , " + rot.Z + " , " + rot.W);
2433 handlerUpdatePrimSingleRotation(localId, rot2, this); 2433 handlerUpdatePrimSingleRotation(localId, rot2, this);
2434 } 2434 }
2435 break; 2435 break;
@@ -2496,7 +2496,7 @@ namespace OpenSim.Region.ClientStack
2496 2496
2497 // Change the position based on scale (for bug number 246) 2497 // Change the position based on scale (for bug number 246)
2498 handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition; 2498 handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition;
2499 // System.Console.WriteLine("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z); 2499 // Console.WriteLine("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z);
2500 if (handlerUpdatePrimSinglePosition != null) 2500 if (handlerUpdatePrimSinglePosition != null)
2501 { 2501 {
2502 handlerUpdatePrimSinglePosition(localId, pos4, this); 2502 handlerUpdatePrimSinglePosition(localId, pos4, this);
@@ -3311,7 +3311,7 @@ namespace OpenSim.Region.ClientStack
3311 AvatarPickerRequestPacket avRequestQuery = (AvatarPickerRequestPacket)Pack; 3311 AvatarPickerRequestPacket avRequestQuery = (AvatarPickerRequestPacket)Pack;
3312 AvatarPickerRequestPacket.AgentDataBlock Requestdata = avRequestQuery.AgentData; 3312 AvatarPickerRequestPacket.AgentDataBlock Requestdata = avRequestQuery.AgentData;
3313 AvatarPickerRequestPacket.DataBlock querydata = avRequestQuery.Data; 3313 AvatarPickerRequestPacket.DataBlock querydata = avRequestQuery.Data;
3314 //System.Console.WriteLine("Agent Sends:" + Helpers.FieldToUTF8String(querydata.Name)); 3314 //Console.WriteLine("Agent Sends:" + Helpers.FieldToUTF8String(querydata.Name));
3315 3315
3316 handlerAvatarPickerRequest = OnAvatarPickerRequest; 3316 handlerAvatarPickerRequest = OnAvatarPickerRequest;
3317 if (handlerAvatarPickerRequest != null) 3317 if (handlerAvatarPickerRequest != null)
@@ -4201,7 +4201,7 @@ namespace OpenSim.Region.ClientStack
4201 } 4201 }
4202 break; 4202 break;
4203 case PacketType.ParcelObjectOwnersRequest: 4203 case PacketType.ParcelObjectOwnersRequest:
4204 //System.Console.WriteLine(Pack.ToString()); 4204 //Console.WriteLine(Pack.ToString());
4205 ParcelObjectOwnersRequestPacket reqPacket = (ParcelObjectOwnersRequestPacket)Pack; 4205 ParcelObjectOwnersRequestPacket reqPacket = (ParcelObjectOwnersRequestPacket)Pack;
4206 4206
4207 handlerParcelObjectOwnerRequest = OnParcelObjectOwnerRequest; 4207 handlerParcelObjectOwnerRequest = OnParcelObjectOwnerRequest;