From c00e56d3eeeb4c6b0e4151b2c6e3532e3aa650a9 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 26 Mar 2008 12:34:02 +0000 Subject: * Increase information in simulator_login log messages --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 45ceccb..21ca573 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -124,16 +124,18 @@ namespace OpenSim.Region.Communications.OGS1 SendParams.Add(GridParams); // Send Request - XmlRpcRequest GridReq; XmlRpcResponse GridResp; try { - GridReq = new XmlRpcRequest("simulator_login", SendParams); + XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams); GridResp = GridReq.Send(serversInfo.GridURL, 16000); } catch (Exception ex) { - m_log.ErrorFormat("Unable to connect to grid. Grid server not running? Exception {0}", ex); + m_log.ErrorFormat( + "Unable to connect to grid at {0}. Grid server not running? Exception {1}", + serversInfo.GridURL, ex); + throw(ex); } Hashtable GridRespData = (Hashtable)GridResp.Value; @@ -143,7 +145,7 @@ namespace OpenSim.Region.Communications.OGS1 if (GridRespData.ContainsKey("error")) { string errorstring = (string) GridRespData["error"]; - m_log.Error("Unable to connect to grid: " + errorstring); + m_log.ErrorFormat("Unable to connect to grid at {0}: {1}", serversInfo.GridURL, errorstring); return null; } else -- cgit v1.1