aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs2
-rw-r--r--OpenSim/Server/Handlers/Map/MapAddServerConnector.cs14
-rw-r--r--OpenSim/Server/Handlers/Map/MapGetServerConnector.cs6
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs7
4 files changed, 16 insertions, 13 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
index 5c89d0f..56f130e 100644
--- a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
@@ -99,7 +99,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
99 } 99 }
100 100
101 return FailureResult(); 101 return FailureResult();
102
103 } 102 }
104 103
105 #region Method-specific handlers 104 #region Method-specific handlers
@@ -127,7 +126,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
127 return FailureResult(); 126 return FailureResult();
128 } 127 }
129 128
130 string perms = "0";
131 FriendInfo[] friendsInfo = m_FriendsService.GetFriends(principalID); 129 FriendInfo[] friendsInfo = m_FriendsService.GetFriends(principalID);
132 foreach (FriendInfo finfo in friendsInfo) 130 foreach (FriendInfo finfo in friendsInfo)
133 { 131 {
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
index 99f98b6..8291107 100644
--- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
@@ -79,7 +79,7 @@ namespace OpenSim.Server.Handlers.MapImage
79 79
80 public override byte[] Handle(string path, Stream requestData, OSHttpRequest httpRequest, OSHttpResponse httpResponse) 80 public override byte[] Handle(string path, Stream requestData, OSHttpRequest httpRequest, OSHttpResponse httpResponse)
81 { 81 {
82 m_log.DebugFormat("[MAP SERVICE IMAGE HANDLER]: Received {0}", path); 82// m_log.DebugFormat("[MAP SERVICE IMAGE HANDLER]: Received {0}", path);
83 StreamReader sr = new StreamReader(requestData); 83 StreamReader sr = new StreamReader(requestData);
84 string body = sr.ReadToEnd(); 84 string body = sr.ReadToEnd();
85 sr.Close(); 85 sr.Close();
@@ -97,9 +97,14 @@ namespace OpenSim.Server.Handlers.MapImage
97 int x = 0, y = 0; 97 int x = 0, y = 0;
98 Int32.TryParse(request["X"].ToString(), out x); 98 Int32.TryParse(request["X"].ToString(), out x);
99 Int32.TryParse(request["Y"].ToString(), out y); 99 Int32.TryParse(request["Y"].ToString(), out y);
100 string type = "image/jpeg"; 100
101 if (request.ContainsKey("TYPE")) 101 m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y);
102 type = request["TYPE"].ToString(); 102
103// string type = "image/jpeg";
104//
105// if (request.ContainsKey("TYPE"))
106// type = request["TYPE"].ToString();
107
103 byte[] data = Convert.FromBase64String(request["DATA"].ToString()); 108 byte[] data = Convert.FromBase64String(request["DATA"].ToString());
104 109
105 string reason = string.Empty; 110 string reason = string.Empty;
@@ -117,7 +122,6 @@ namespace OpenSim.Server.Handlers.MapImage
117 } 122 }
118 123
119 return FailureResult("Unexpected server error"); 124 return FailureResult("Unexpected server error");
120
121 } 125 }
122 126
123 private byte[] SuccessResult() 127 private byte[] SuccessResult()
diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
index e8a424f..501074d 100644
--- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
@@ -42,7 +42,8 @@ namespace OpenSim.Server.Handlers.MapImage
42{ 42{
43 public class MapGetServiceConnector : ServiceConnector 43 public class MapGetServiceConnector : ServiceConnector
44 { 44 {
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 45// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
46
46 private IMapImageService m_MapService; 47 private IMapImageService m_MapService;
47 48
48 private string m_ConfigName = "MapImageService"; 49 private string m_ConfigName = "MapImageService";
@@ -69,7 +70,8 @@ namespace OpenSim.Server.Handlers.MapImage
69 70
70 class MapServerGetHandler : BaseStreamHandler 71 class MapServerGetHandler : BaseStreamHandler
71 { 72 {
72 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 73// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
74
73 private IMapImageService m_MapService; 75 private IMapImageService m_MapService;
74 76
75 public MapServerGetHandler(IMapImageService service) : 77 public MapServerGetHandler(IMapImageService service) :
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 9935e3c..78b09cd 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -243,14 +243,13 @@ namespace OpenSim.Server.Handlers.Simulation
243 responsedata["int_response_code"] = HttpStatusCode.OK; 243 responsedata["int_response_code"] = HttpStatusCode.OK;
244 responsedata["str_response_string"] = "OpenSim agent " + id.ToString(); 244 responsedata["str_response_string"] = "OpenSim agent " + id.ToString();
245 245
246 m_log.Debug("[AGENT HANDLER]: Agent Released/Deleted."); 246 m_log.DebugFormat("[AGENT HANDLER]: Agent {0} Released/Deleted from region {1}", id, regionID);
247 } 247 }
248 248
249 protected virtual void ReleaseAgent(UUID regionID, UUID id) 249 protected virtual void ReleaseAgent(UUID regionID, UUID id)
250 { 250 {
251 m_SimulationService.ReleaseAgent(regionID, id, ""); 251 m_SimulationService.ReleaseAgent(regionID, id, "");
252 } 252 }
253
254 } 253 }
255 254
256 public class AgentPostHandler : BaseStreamHandler 255 public class AgentPostHandler : BaseStreamHandler
@@ -275,7 +274,7 @@ namespace OpenSim.Server.Handlers.Simulation
275 public override byte[] Handle(string path, Stream request, 274 public override byte[] Handle(string path, Stream request,
276 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 275 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
277 { 276 {
278 m_log.DebugFormat("[SIMULATION]: Stream handler called"); 277// m_log.DebugFormat("[SIMULATION]: Stream handler called");
279 278
280 Hashtable keysvals = new Hashtable(); 279 Hashtable keysvals = new Hashtable();
281 Hashtable headervals = new Hashtable(); 280 Hashtable headervals = new Hashtable();
@@ -462,7 +461,7 @@ namespace OpenSim.Server.Handlers.Simulation
462 public override byte[] Handle(string path, Stream request, 461 public override byte[] Handle(string path, Stream request,
463 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 462 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
464 { 463 {
465 m_log.DebugFormat("[SIMULATION]: Stream handler called"); 464// m_log.DebugFormat("[SIMULATION]: Stream handler called");
466 465
467 Hashtable keysvals = new Hashtable(); 466 Hashtable keysvals = new Hashtable();
468 Hashtable headervals = new Hashtable(); 467 Hashtable headervals = new Hashtable();