* Increase information in simulator_login log messages

0.6.0-stable
Justin Clarke Casey 2008-03-26 12:34:02 +00:00
parent 35b1cae593
commit c00e56d3ee
1 changed files with 6 additions and 4 deletions

View File

@ -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