aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridXmlRpcModule.cs
diff options
context:
space:
mode:
authorMW2009-02-21 15:15:54 +0000
committerMW2009-02-21 15:15:54 +0000
commit913887a8e5a84efaca4babe71d0b2110bccbbc90 (patch)
tree6a88a220653c22efe5f57c62613d46ad54d150b3 /OpenSim/Grid/GridServer/GridXmlRpcModule.cs
parentApplied patch from mantis #3213. Which adds a check to create region command,... (diff)
downloadopensim-SC-913887a8e5a84efaca4babe71d0b2110bccbbc90.zip
opensim-SC-913887a8e5a84efaca4babe71d0b2110bccbbc90.tar.gz
opensim-SC-913887a8e5a84efaca4babe71d0b2110bccbbc90.tar.bz2
opensim-SC-913887a8e5a84efaca4babe71d0b2110bccbbc90.tar.xz
Some more refactoring of GridServer.
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/GridServer/GridXmlRpcModule.cs21
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Grid/GridServer/GridXmlRpcModule.cs b/OpenSim/Grid/GridServer/GridXmlRpcModule.cs
index af83985..c2cd1d6 100644
--- a/OpenSim/Grid/GridServer/GridXmlRpcModule.cs
+++ b/OpenSim/Grid/GridServer/GridXmlRpcModule.cs
@@ -305,7 +305,26 @@ namespace OpenSim.Grid.GridServer
305 return e.XmlRpcErrorResponse; 305 return e.XmlRpcErrorResponse;
306 } 306 }
307 307
308 m_gridDBService.LoginRegion(sim, existingSim); 308 DataResponse insertResponse = m_gridDBService.LoginRegion(sim, existingSim);
309
310 switch (insertResponse)
311 {
312 case DataResponse.RESPONSE_OK:
313 m_log.Info("[LOGIN END]: " + (existingSim == null ? "New" : "Existing") + " sim login successful: " + sim.regionName);
314 break;
315 case DataResponse.RESPONSE_ERROR:
316 m_log.Warn("[LOGIN END]: Sim login failed (Error): " + sim.regionName);
317 break;
318 case DataResponse.RESPONSE_INVALIDCREDENTIALS:
319 m_log.Warn("[LOGIN END]: " +
320 "Sim login failed (Invalid Credentials): " + sim.regionName);
321 break;
322 case DataResponse.RESPONSE_AUTHREQUIRED:
323 m_log.Warn("[LOGIN END]: " +
324 "Sim login failed (Authentication Required): " +
325 sim.regionName);
326 break;
327 }
309 328
310 XmlRpcResponse response = CreateLoginResponse(sim); 329 XmlRpcResponse response = CreateLoginResponse(sim);
311 330