aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorCharles Krinke2009-02-22 20:52:55 +0000
committerCharles Krinke2009-02-22 20:52:55 +0000
commit8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch)
tree96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/CoreModules
parentAllow delivery of object messages gridwide (diff)
downloadopensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip
opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz
opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2
opensim-SC_OLD-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs6
-rw-r--r--OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetTransactionModule.cs10
-rw-r--r--OpenSim/Region/CoreModules/Agent/Capabilities/CapabilitiesModule.cs8
-rw-r--r--OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs4
-rw-r--r--OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs44
-rw-r--r--OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs4
-rw-r--r--OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs9
-rw-r--r--OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs7
-rw-r--r--OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs8
-rw-r--r--OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/Effects/CookieCutter.cs12
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/MapImageModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs10
15 files changed, 73 insertions, 57 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs
index 3c24b05..312c434 100644
--- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs
+++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs
@@ -176,7 +176,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
176 public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, 176 public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type,
177 byte[] data, bool storeLocal, bool tempFile) 177 byte[] data, bool storeLocal, bool tempFile)
178 { 178 {
179 //System.Console.WriteLine("HandleUDPUploadRequest - assetID: " + assetID.ToString() + " transaction: " + transaction.ToString() + " type: " + type.ToString() + " storelocal: " + storeLocal + " tempFile: " + tempFile); 179 //m_log.Debug("HandleUDPUploadRequest - assetID: " + assetID.ToString() + " transaction: " + transaction.ToString() + " type: " + type.ToString() + " storelocal: " + storeLocal + " tempFile: " + tempFile);
180 if (((AssetType)type == AssetType.Texture || 180 if (((AssetType)type == AssetType.Texture ||
181 (AssetType)type == AssetType.Sound || 181 (AssetType)type == AssetType.Sound ||
182 (AssetType)type == AssetType.TextureTGA || 182 (AssetType)type == AssetType.TextureTGA ||
@@ -196,7 +196,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
196 } 196 }
197 } 197 }
198 198
199 //Console.WriteLine("asset upload of " + assetID); 199 //m_log.Debug("asset upload of " + assetID);
200 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId); 200 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
201 201
202 AssetXferUploader uploader = transactions.RequestXferUploader(transaction); 202 AssetXferUploader uploader = transactions.RequestXferUploader(transaction);
@@ -216,7 +216,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
216 /// <param name="data"></param> 216 /// <param name="data"></param>
217 public void HandleXfer(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data) 217 public void HandleXfer(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data)
218 { 218 {
219 //System.Console.WriteLine("xferID: " + xferID + " packetID: " + packetID + " data!"); 219 //m_log.Debug("xferID: " + xferID + " packetID: " + packetID + " data!");
220 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId); 220 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
221 221
222 transactions.HandleXfer(xferID, packetID, data); 222 transactions.HandleXfer(xferID, packetID, data);
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetTransactionModule.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetTransactionModule.cs
index 3fd4a70..0adafd3 100644
--- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetTransactionModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetTransactionModule.cs
@@ -55,7 +55,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
55 55
56 public AssetTransactionModule() 56 public AssetTransactionModule()
57 { 57 {
58 // System.Console.WriteLine("creating AgentAssetTransactionModule"); 58 //m_log.Debug("creating AgentAssetTransactionModule");
59 } 59 }
60 60
61 #region IRegionModule Members 61 #region IRegionModule Members
@@ -64,7 +64,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
64 { 64 {
65 if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID)) 65 if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID))
66 { 66 {
67 // System.Console.WriteLine("initialising AgentAssetTransactionModule"); 67 // m_log.Debug("initialising AgentAssetTransactionModule");
68 RegisteredScenes.Add(scene.RegionInfo.RegionID, scene); 68 RegisteredScenes.Add(scene.RegionInfo.RegionID, scene);
69 scene.RegisterModuleInterface<IAgentAssetTransactions>(this); 69 scene.RegisterModuleInterface<IAgentAssetTransactions>(this);
70 70
@@ -237,7 +237,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
237 public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, 237 public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type,
238 byte[] data, bool storeLocal, bool tempFile) 238 byte[] data, bool storeLocal, bool tempFile)
239 { 239 {
240 //System.Console.WriteLine("HandleUDPUploadRequest - assetID: " + assetID.ToString() + " transaction: " + transaction.ToString() + " type: " + type.ToString() + " storelocal: " + storeLocal + " tempFile: " + tempFile); 240 //m_log.Debug("HandleUDPUploadRequest - assetID: " + assetID.ToString() + " transaction: " + transaction.ToString() + " type: " + type.ToString() + " storelocal: " + storeLocal + " tempFile: " + tempFile);
241 if (((AssetType)type == AssetType.Texture || 241 if (((AssetType)type == AssetType.Texture ||
242 (AssetType)type == AssetType.Sound || 242 (AssetType)type == AssetType.Sound ||
243 (AssetType)type == AssetType.TextureTGA || 243 (AssetType)type == AssetType.TextureTGA ||
@@ -257,7 +257,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
257 } 257 }
258 } 258 }
259 259
260 //Console.WriteLine("asset upload of " + assetID); 260 //m_log.Debug("asset upload of " + assetID);
261 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId); 261 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
262 262
263 AssetXferUploader uploader = transactions.RequestXferUploader(transaction); 263 AssetXferUploader uploader = transactions.RequestXferUploader(transaction);
@@ -277,7 +277,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
277 /// <param name="data"></param> 277 /// <param name="data"></param>
278 public void HandleXfer(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data) 278 public void HandleXfer(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data)
279 { 279 {
280 //System.Console.WriteLine("xferID: " + xferID + " packetID: " + packetID + " data!"); 280 //m_log.Debug("xferID: " + xferID + " packetID: " + packetID + " data!");
281 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId); 281 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
282 282
283 transactions.HandleXfer(xferID, packetID, data); 283 transactions.HandleXfer(xferID, packetID, data);
diff --git a/OpenSim/Region/CoreModules/Agent/Capabilities/CapabilitiesModule.cs b/OpenSim/Region/CoreModules/Agent/Capabilities/CapabilitiesModule.cs
index 2c6b51d..39dd84f 100644
--- a/OpenSim/Region/CoreModules/Agent/Capabilities/CapabilitiesModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/Capabilities/CapabilitiesModule.cs
@@ -188,21 +188,21 @@ namespace OpenSim.Region.CoreModules.Agent.Capabilities
188 188
189 public void SetChildrenSeed(UUID agentID, Dictionary<ulong, string> seeds) 189 public void SetChildrenSeed(UUID agentID, Dictionary<ulong, string> seeds)
190 { 190 {
191 //Console.WriteLine(" !!! Setting child seeds in {0} to {1}", RegionInfo.RegionName, value.Count); 191 //m_log.Debug(" !!! Setting child seeds in {0} to {1}", RegionInfo.RegionName, value.Count);
192 childrenSeeds[agentID] = seeds; 192 childrenSeeds[agentID] = seeds;
193 } 193 }
194 194
195 public void DumpChildrenSeeds(UUID agentID) 195 public void DumpChildrenSeeds(UUID agentID)
196 { 196 {
197 Console.WriteLine("================ ChildrenSeed {0} ================", m_scene.RegionInfo.RegionName); 197 m_log.Info("================ ChildrenSeed "+m_scene.RegionInfo.RegionName+" ================");
198 foreach (KeyValuePair<ulong, string> kvp in childrenSeeds[agentID]) 198 foreach (KeyValuePair<ulong, string> kvp in childrenSeeds[agentID])
199 { 199 {
200 uint x, y; 200 uint x, y;
201 Utils.LongToUInts(kvp.Key, out x, out y); 201 Utils.LongToUInts(kvp.Key, out x, out y);
202 x = x / Constants.RegionSize; 202 x = x / Constants.RegionSize;
203 y = y / Constants.RegionSize; 203 y = y / Constants.RegionSize;
204 Console.WriteLine(" >> {0}, {1}: {2}", x, y, kvp.Value); 204 m_log.Info(" >> "+x+", "+y+": "+kvp.Value);
205 } 205 }
206 } 206 }
207 } 207 }
208} \ No newline at end of file 208}
diff --git a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs
index 4bfa18f..124f0f6 100644
--- a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs
@@ -72,7 +72,7 @@ namespace OpenSim.Region.CoreModules.Agent.TextureDownload
72 { 72 {
73 if (m_scene == null) 73 if (m_scene == null)
74 { 74 {
75 //Console.WriteLine("Creating Texture download module"); 75 //m_log.Debug("Creating Texture download module");
76 m_scene = scene; 76 m_scene = scene;
77 m_thread = new Thread(new ThreadStart(ProcessTextureSenders)); 77 m_thread = new Thread(new ThreadStart(ProcessTextureSenders));
78 m_thread.Name = "ProcessTextureSenderThread"; 78 m_thread.Name = "ProcessTextureSenderThread";
diff --git a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
index 317a935..aa33982 100644
--- a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
+++ b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
@@ -168,7 +168,7 @@ namespace OpenSim.Region.CoreModules.Communications.Local
168 //Utils.LongToUInts(regionHandle, out x, out y); 168 //Utils.LongToUInts(regionHandle, out x, out y);
169 //x = x / Constants.RegionSize; 169 //x = x / Constants.RegionSize;
170 //y = y / Constants.RegionSize; 170 //y = y / Constants.RegionSize;
171 //Console.WriteLine("\n >>> Local SendReleaseAgent " + x + "-" + y); 171 //m_log.Debug("\n >>> Local SendReleaseAgent " + x + "-" + y);
172 foreach (Scene s in m_sceneList) 172 foreach (Scene s in m_sceneList)
173 { 173 {
174 if (s.RegionInfo.RegionHandle == regionHandle) 174 if (s.RegionInfo.RegionHandle == regionHandle)
@@ -187,7 +187,7 @@ namespace OpenSim.Region.CoreModules.Communications.Local
187 //Utils.LongToUInts(regionHandle, out x, out y); 187 //Utils.LongToUInts(regionHandle, out x, out y);
188 //x = x / Constants.RegionSize; 188 //x = x / Constants.RegionSize;
189 //y = y / Constants.RegionSize; 189 //y = y / Constants.RegionSize;
190 //Console.WriteLine("\n >>> Local SendCloseAgent " + x + "-" + y); 190 //m_log.Debug("\n >>> Local SendCloseAgent " + x + "-" + y);
191 foreach (Scene s in m_sceneList) 191 foreach (Scene s in m_sceneList)
192 { 192 {
193 if (s.RegionInfo.RegionHandle == regionHandle) 193 if (s.RegionInfo.RegionHandle == regionHandle)
diff --git a/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs b/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs
index 593d621..b19f0fa 100644
--- a/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs
+++ b/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs
@@ -273,7 +273,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
273 { 273 {
274 // Eventually, we want to use a caps url instead of the agentID 274 // Eventually, we want to use a caps url instead of the agentID
275 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + aCircuit.AgentID + "/"; 275 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + aCircuit.AgentID + "/";
276 //Console.WriteLine(" >>> DoCreateChildAgentCall <<< " + uri); 276 //m_log.Debug(" >>> DoCreateChildAgentCall <<< " + uri);
277 277
278 WebRequest AgentCreateRequest = WebRequest.Create(uri); 278 WebRequest AgentCreateRequest = WebRequest.Create(uri);
279 AgentCreateRequest.Method = "POST"; 279 AgentCreateRequest.Method = "POST";
@@ -358,7 +358,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
358 { 358 {
359 // Eventually, we want to use a caps url instead of the agentID 359 // Eventually, we want to use a caps url instead of the agentID
360 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + cAgentData.AgentID + "/"; 360 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + cAgentData.AgentID + "/";
361 //Console.WriteLine(" >>> DoChildAgentUpdateCall <<< " + uri); 361 //m_log.Debug(" >>> DoChildAgentUpdateCall <<< " + uri);
362 362
363 WebRequest ChildUpdateRequest = WebRequest.Create(uri); 363 WebRequest ChildUpdateRequest = WebRequest.Create(uri);
364 ChildUpdateRequest.Method = "PUT"; 364 ChildUpdateRequest.Method = "PUT";
@@ -440,7 +440,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
440 440
441 protected bool DoReleaseAgentCall(ulong regionHandle, UUID id, string uri) 441 protected bool DoReleaseAgentCall(ulong regionHandle, UUID id, string uri)
442 { 442 {
443 //Console.WriteLine(" >>> DoReleaseAgentCall <<< " + uri); 443 //m_log.Debug(" >>> DoReleaseAgentCall <<< " + uri);
444 444
445 WebRequest request = WebRequest.Create(uri); 445 WebRequest request = WebRequest.Create(uri);
446 request.Method = "DELETE"; 446 request.Method = "DELETE";
@@ -474,7 +474,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
474 { 474 {
475 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + id + "/" + region.RegionHandle.ToString() +"/"; 475 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/agent/" + id + "/" + region.RegionHandle.ToString() +"/";
476 476
477 //Console.WriteLine(" >>> DoCloseAgentCall <<< " + uri); 477 //m_log.Debug(" >>> DoCloseAgentCall <<< " + uri);
478 478
479 WebRequest request = WebRequest.Create(uri); 479 WebRequest request = WebRequest.Create(uri);
480 request.Method = "DELETE"; 480 request.Method = "DELETE";
@@ -508,7 +508,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
508 { 508 {
509 ulong regionHandle = GetRegionHandle(region.RegionHandle); 509 ulong regionHandle = GetRegionHandle(region.RegionHandle);
510 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/object/" + sog.UUID + "/" + regionHandle.ToString() + "/"; 510 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/object/" + sog.UUID + "/" + regionHandle.ToString() + "/";
511 //Console.WriteLine(" >>> DoCreateChildAgentCall <<< " + uri); 511 //m_log.Debug(" >>> DoCreateChildAgentCall <<< " + uri);
512 512
513 WebRequest ObjectCreateRequest = WebRequest.Create(uri); 513 WebRequest ObjectCreateRequest = WebRequest.Create(uri);
514 ObjectCreateRequest.Method = "POST"; 514 ObjectCreateRequest.Method = "POST";
@@ -588,7 +588,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
588 protected bool DoHelloNeighbourCall(RegionInfo region, RegionInfo thisRegion) 588 protected bool DoHelloNeighbourCall(RegionInfo region, RegionInfo thisRegion)
589 { 589 {
590 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/region/" + thisRegion.RegionID + "/"; 590 string uri = "http://" + region.ExternalEndPoint.Address + ":" + region.HttpPort + "/region/" + thisRegion.RegionID + "/";
591 //Console.WriteLine(" >>> DoHelloNeighbourCall <<< " + uri); 591 //m_log.Debug(" >>> DoHelloNeighbourCall <<< " + uri);
592 592
593 WebRequest HelloNeighbourRequest = WebRequest.Create(uri); 593 WebRequest HelloNeighbourRequest = WebRequest.Create(uri);
594 HelloNeighbourRequest.Method = "POST"; 594 HelloNeighbourRequest.Method = "POST";
@@ -681,11 +681,11 @@ namespace OpenSim.Region.CoreModules.Communications.REST
681 { 681 {
682 //m_log.Debug("[CONNECTION DEBUGGING]: AgentHandler Called"); 682 //m_log.Debug("[CONNECTION DEBUGGING]: AgentHandler Called");
683 683
684 //Console.WriteLine("---------------------------"); 684 //m_log.Debug("---------------------------");
685 //Console.WriteLine(" >> uri=" + request["uri"]); 685 //m_log.Debug(" >> uri=" + request["uri"]);
686 //Console.WriteLine(" >> content-type=" + request["content-type"]); 686 //m_log.Debug(" >> content-type=" + request["content-type"]);
687 //Console.WriteLine(" >> http-method=" + request["http-method"]); 687 //m_log.Debug(" >> http-method=" + request["http-method"]);
688 //Console.WriteLine("---------------------------\n"); 688 //m_log.Debug("---------------------------\n");
689 689
690 Hashtable responsedata = new Hashtable(); 690 Hashtable responsedata = new Hashtable();
691 responsedata["content_type"] = "text/html"; 691 responsedata["content_type"] = "text/html";
@@ -833,7 +833,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
833 833
834 protected virtual void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, ulong regionHandle) 834 protected virtual void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, ulong regionHandle)
835 { 835 {
836 //Console.WriteLine(" >>> DoDelete action:" + action + "; regionHandle:" + regionHandle); 836 //m_log.Debug(" >>> DoDelete action:" + action + "; regionHandle:" + regionHandle);
837 837
838 if (action.Equals("release")) 838 if (action.Equals("release"))
839 m_localBackend.SendReleaseAgent(regionHandle, id, ""); 839 m_localBackend.SendReleaseAgent(regionHandle, id, "");
@@ -852,11 +852,11 @@ namespace OpenSim.Region.CoreModules.Communications.REST
852 { 852 {
853 //m_log.Debug("[CONNECTION DEBUGGING]: ObjectHandler Called"); 853 //m_log.Debug("[CONNECTION DEBUGGING]: ObjectHandler Called");
854 854
855 //Console.WriteLine("---------------------------"); 855 //m_log.Debug("---------------------------");
856 //Console.WriteLine(" >> uri=" + request["uri"]); 856 //m_log.Debug(" >> uri=" + request["uri"]);
857 //Console.WriteLine(" >> content-type=" + request["content-type"]); 857 //m_log.Debug(" >> content-type=" + request["content-type"]);
858 //Console.WriteLine(" >> http-method=" + request["http-method"]); 858 //m_log.Debug(" >> http-method=" + request["http-method"]);
859 //Console.WriteLine("---------------------------\n"); 859 //m_log.Debug("---------------------------\n");
860 860
861 Hashtable responsedata = new Hashtable(); 861 Hashtable responsedata = new Hashtable();
862 responsedata["content_type"] = "text/html"; 862 responsedata["content_type"] = "text/html";
@@ -964,11 +964,11 @@ namespace OpenSim.Region.CoreModules.Communications.REST
964 { 964 {
965 //m_log.Debug("[CONNECTION DEBUGGING]: RegionHandler Called"); 965 //m_log.Debug("[CONNECTION DEBUGGING]: RegionHandler Called");
966 966
967 //Console.WriteLine("---------------------------"); 967 //m_log.Debug("---------------------------");
968 //Console.WriteLine(" >> uri=" + request["uri"]); 968 //m_log.Debug(" >> uri=" + request["uri"]);
969 //Console.WriteLine(" >> content-type=" + request["content-type"]); 969 //m_log.Debug(" >> content-type=" + request["content-type"]);
970 //Console.WriteLine(" >> http-method=" + request["http-method"]); 970 //m_log.Debug(" >> http-method=" + request["http-method"]);
971 //Console.WriteLine("---------------------------\n"); 971 //m_log.Debug("---------------------------\n");
972 972
973 Hashtable responsedata = new Hashtable(); 973 Hashtable responsedata = new Hashtable();
974 responsedata["content_type"] = "text/html"; 974 responsedata["content_type"] = "text/html";
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
index c1fe5c7..203ab32 100644
--- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
@@ -94,7 +94,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
94 //m_scene.ForEachScenePresence(delegate (ScenePresence sp) { 94 //m_scene.ForEachScenePresence(delegate (ScenePresence sp) {
95 // if (!sp.IsChildAgent && sp.UUID == remoteClient.AgentId) 95 // if (!sp.IsChildAgent && sp.UUID == remoteClient.AgentId)
96 // { 96 // {
97 // Console.WriteLine("XXX Root agent"); 97 // m_log.Debug("XXX Root agent");
98 // DoRequestMapBlocks(remoteClient, minX, minY, maxX, maxY, flag); 98 // DoRequestMapBlocks(remoteClient, minX, minY, maxX, maxY, flag);
99 // } 99 // }
100 //}; 100 //};
diff --git a/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs
index c9a63bd..8065f42 100644
--- a/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs
@@ -375,7 +375,7 @@ namespace OpenSim.Region.CoreModules.InterGrid
375 375
376 public OSD RequestRezAvatarMethod(string path, OSD request) 376 public OSD RequestRezAvatarMethod(string path, OSD request)
377 { 377 {
378 //System.Console.WriteLine("[REQUESTREZAVATAR]: " + request.ToString()); 378 //m_log.Debug("[REQUESTREZAVATAR]: " + request.ToString());
379 379
380 OSDMap requestMap = (OSDMap)request; 380 OSDMap requestMap = (OSDMap)request;
381 381
@@ -602,7 +602,7 @@ namespace OpenSim.Region.CoreModules.InterGrid
602 } 602 }
603 } 603 }
604 604
605 //System.Console.WriteLine("Response:" + responseMap.ToString()); 605 //m_log.Debug("Response:" + responseMap.ToString());
606 return responseMap; 606 return responseMap;
607 } 607 }
608 608
diff --git a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
index ab404bd..b4ec7ae 100644
--- a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs
@@ -35,6 +35,8 @@ using OpenMetaverse.Imaging;
35using OpenSim.Framework; 35using OpenSim.Framework;
36using OpenSim.Region.Framework.Interfaces; 36using OpenSim.Region.Framework.Interfaces;
37using OpenSim.Region.Framework.Scenes; 37using OpenSim.Region.Framework.Scenes;
38using log4net;
39using System.Reflection;
38 40
39namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture 41namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
40{ 42{
@@ -86,7 +88,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
86 { 88 {
87 if (RenderPlugins.ContainsKey(contentType)) 89 if (RenderPlugins.ContainsKey(contentType))
88 { 90 {
89 //Console.WriteLine("dynamic texture being created: " + url + " of type " + contentType); 91 //m_log.Debug("dynamic texture being created: " + url + " of type " + contentType);
90 92
91 DynamicTextureUpdater updater = new DynamicTextureUpdater(); 93 DynamicTextureUpdater updater = new DynamicTextureUpdater();
92 updater.SimUUID = simID; 94 updater.SimUUID = simID;
@@ -192,6 +194,8 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
192 194
193 public class DynamicTextureUpdater 195 public class DynamicTextureUpdater
194 { 196 {
197 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
198
195 public bool BlendWithOldTexture = false; 199 public bool BlendWithOldTexture = false;
196 public string BodyData; 200 public string BodyData;
197 public string ContentType; 201 public string ContentType;
@@ -302,8 +306,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
302 } 306 }
303 catch (Exception) 307 catch (Exception)
304 { 308 {
305 Console.WriteLine( 309 m_log.Error("[DYNAMICTEXTUREMODULE]: OpenJpeg Encode Failed. Empty byte data returned!");
306 "[DYNAMICTEXTUREMODULE]: OpenJpeg Encode Failed. Empty byte data returned!");
307 } 310 }
308 311
309 return result; 312 return result;
diff --git a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
index 96618e0..4abc55d 100644
--- a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
@@ -34,11 +34,15 @@ using OpenMetaverse;
34using OpenMetaverse.Imaging; 34using OpenMetaverse.Imaging;
35using OpenSim.Region.Framework.Interfaces; 35using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.Framework.Scenes; 36using OpenSim.Region.Framework.Scenes;
37using log4net;
38using System.Reflection;
37 39
38namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL 40namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
39{ 41{
40 public class LoadImageURLModule : IRegionModule, IDynamicTextureRender 42 public class LoadImageURLModule : IRegionModule, IDynamicTextureRender
41 { 43 {
44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45
42 private string m_name = "LoadImageURL"; 46 private string m_name = "LoadImageURL";
43 private Scene m_scene; 47 private Scene m_scene;
44 private IDynamicTextureManager m_textureManager; 48 private IDynamicTextureManager m_textureManager;
@@ -203,8 +207,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
203 } 207 }
204 catch (Exception) 208 catch (Exception)
205 { 209 {
206 Console.WriteLine( 210 m_log.Error("[LOADIMAGEURLMODULE]: OpenJpeg Encode Failed. Empty byte data returned!");
207 "[LOADIMAGEURLMODULE]: OpenJpeg Encode Failed. Empty byte data returned!");
208 } 211 }
209 212
210 m_textureManager.ReturnData(state.RequestID, imageJ2000); 213 m_textureManager.ReturnData(state.RequestID, imageJ2000);
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
index e7fabbe..4fb500e 100644
--- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
@@ -36,6 +36,8 @@ using OpenMetaverse;
36using OpenMetaverse.Imaging; 36using OpenMetaverse.Imaging;
37using OpenSim.Region.Framework.Interfaces; 37using OpenSim.Region.Framework.Interfaces;
38using OpenSim.Region.Framework.Scenes; 38using OpenSim.Region.Framework.Scenes;
39using log4net;
40using System.Reflection;
39 41
40//using Cairo; 42//using Cairo;
41 43
@@ -43,6 +45,8 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
43{ 45{
44 public class VectorRenderModule : IRegionModule, IDynamicTextureRender 46 public class VectorRenderModule : IRegionModule, IDynamicTextureRender
45 { 47 {
48 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
49
46 private string m_name = "VectorRenderModule"; 50 private string m_name = "VectorRenderModule";
47 private Scene m_scene; 51 private Scene m_scene;
48 private IDynamicTextureManager m_textureManager; 52 private IDynamicTextureManager m_textureManager;
@@ -317,7 +321,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
317 } 321 }
318 catch (Exception) 322 catch (Exception)
319 { 323 {
320 Console.WriteLine( 324 m_log.Error(
321 "[VECTORRENDERMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); 325 "[VECTORRENDERMODULE]: OpenJpeg Encode Failed. Empty byte data returned!");
322 } 326 }
323 m_textureManager.ReturnData(id, imageJ2000); 327 m_textureManager.ReturnData(id, imageJ2000);
@@ -333,7 +337,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
333 catch (Exception) 337 catch (Exception)
334 { 338 {
335 //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used 339 //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used
336 // Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString()); 340 // m_log.Debug("Problem with Draw. Please verify parameters." + e.ToString());
337 parsed = -1; 341 parsed = -1;
338 } 342 }
339 343
diff --git a/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs b/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs
index 38cb502..d917adc 100644
--- a/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs
@@ -333,7 +333,7 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
333 } 333 }
334 else 334 else
335 { 335 {
336 Console.WriteLine("UNABLE TO REMOVE COMPLETED REQUEST"); 336 m_log.Error("UNABLE TO REMOVE COMPLETED REQUEST");
337 } 337 }
338 } 338 }
339 } 339 }
diff --git a/OpenSim/Region/CoreModules/World/Terrain/Effects/CookieCutter.cs b/OpenSim/Region/CoreModules/World/Terrain/Effects/CookieCutter.cs
index 1824231..58b02f9 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/Effects/CookieCutter.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/Effects/CookieCutter.cs
@@ -28,11 +28,15 @@ using System;
28using OpenSim.Region.CoreModules.World.Terrain.PaintBrushes; 28using OpenSim.Region.CoreModules.World.Terrain.PaintBrushes;
29using OpenSim.Region.Framework.Interfaces; 29using OpenSim.Region.Framework.Interfaces;
30using OpenSim.Region.Framework.Scenes; 30using OpenSim.Region.Framework.Scenes;
31using log4net;
32using System.Reflection;
31 33
32namespace OpenSim.Region.CoreModules.World.Terrain.Effects 34namespace OpenSim.Region.CoreModules.World.Terrain.Effects
33{ 35{
34 internal class CookieCutter : ITerrainEffect 36 internal class CookieCutter : ITerrainEffect
35 { 37 {
38 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
39
36 #region ITerrainEffect Members 40 #region ITerrainEffect Members
37 41
38 public void RunEffect(ITerrainChannel map) 42 public void RunEffect(ITerrainChannel map)
@@ -44,7 +48,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Effects
44 bool[,] smoothMask = new bool[map.Width,map.Height]; 48 bool[,] smoothMask = new bool[map.Width,map.Height];
45 bool[,] allowMask = new bool[map.Width,map.Height]; 49 bool[,] allowMask = new bool[map.Width,map.Height];
46 50
47 Console.WriteLine("S1"); 51 m_log.Info("S1");
48 52
49 // Step one, generate rough mask 53 // Step one, generate rough mask
50 int x, y; 54 int x, y;
@@ -52,7 +56,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Effects
52 { 56 {
53 for (y = 0; y < map.Height; y++) 57 for (y = 0; y < map.Height; y++)
54 { 58 {
55 Console.Write("."); 59 m_log.Info(".");
56 smoothMask[x, y] = true; 60 smoothMask[x, y] = true;
57 allowMask[x,y] = true; 61 allowMask[x,y] = true;
58 62
@@ -71,10 +75,10 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Effects
71 } 75 }
72 } 76 }
73 77
74 Console.WriteLine("S2"); 78 m_log.Info("S2");
75 //smooth.FloodEffect(map, smoothMask, 4.0); 79 //smooth.FloodEffect(map, smoothMask, 4.0);
76 80
77 Console.WriteLine("S3"); 81 m_log.Info("S3");
78 for (x = 0; x < map.Width; x++) 82 for (x = 0; x < map.Width; x++)
79 { 83 {
80 for (y = 0; y < map.Height; y++) 84 for (y = 0; y < map.Height; y++)
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapImageModule.cs
index b091c60..5b28430 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/MapImageModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/MapImageModule.cs
@@ -117,7 +117,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
117 } 117 }
118 catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke 118 catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke
119 { 119 {
120 Console.WriteLine("Failed generating terrain map: " + e); 120 m_log.Error("Failed generating terrain map: " + e);
121 } 121 }
122 122
123 return imageData; 123 return imageData;
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
index 8f61af7..1ab8e26 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
@@ -40,6 +40,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
40{ 40{
41 // Hue, Saturation, Value; used for color-interpolation 41 // Hue, Saturation, Value; used for color-interpolation
42 struct HSV { 42 struct HSV {
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44
43 public float h; 45 public float h;
44 public float s; 46 public float s;
45 public float v; 47 public float v;
@@ -76,10 +78,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
76 // (for info about algorithm, see http://en.wikipedia.org/wiki/HSL_and_HSV) 78 // (for info about algorithm, see http://en.wikipedia.org/wiki/HSL_and_HSV)
77 public Color toColor() 79 public Color toColor()
78 { 80 {
79 if (s < 0f) Console.WriteLine("S < 0: " + s); 81 if (s < 0f) m_log.Debug("S < 0: " + s);
80 else if (s > 1f) Console.WriteLine("S > 1: " + s); 82 else if (s > 1f) m_log.Debug("S > 1: " + s);
81 if (v < 0f) Console.WriteLine("V < 0: " + v); 83 if (v < 0f) m_log.Debug("V < 0: " + v);
82 else if (v > 1f) Console.WriteLine("V > 1: " + v); 84 else if (v > 1f) m_log.Debug("V > 1: " + v);
83 85
84 float f = h / 60f; 86 float f = h / 60f;
85 int sector = (int)f % 6; 87 int sector = (int)f % 6;