aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/GridUser
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-02-07 21:40:28 +0000
committerJustin Clark-Casey (justincc)2012-02-07 21:40:28 +0000
commit1f402fdf5e8ef53a07f98c4447946805791d26bc (patch)
treed7a0ea0ee0538e0a14bb69dd2e76cf9ac43e34b5 /OpenSim/Services/Connectors/GridUser
parentAdd TestAddTaskInventoryItem() (diff)
downloadopensim-SC_OLD-1f402fdf5e8ef53a07f98c4447946805791d26bc.zip
opensim-SC_OLD-1f402fdf5e8ef53a07f98c4447946805791d26bc.tar.gz
opensim-SC_OLD-1f402fdf5e8ef53a07f98c4447946805791d26bc.tar.bz2
opensim-SC_OLD-1f402fdf5e8ef53a07f98c4447946805791d26bc.tar.xz
Add url to logging if SynchronousRestFormsRequester.MakRequest() throws an exception in service connectors
Diffstat (limited to 'OpenSim/Services/Connectors/GridUser')
-rw-r--r--OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs b/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs
index aa98b5d..20d7eaf 100644
--- a/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs
+++ b/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs
@@ -156,11 +156,12 @@ namespace OpenSim.Services.Connectors
156 sendData["LookAt"] = lookAt.ToString(); 156 sendData["LookAt"] = lookAt.ToString();
157 157
158 string reqString = ServerUtils.BuildQueryString(sendData); 158 string reqString = ServerUtils.BuildQueryString(sendData);
159 string uri = m_ServerURI + "/griduser";
159 // m_log.DebugFormat("[GRID USER CONNECTOR]: queryString = {0}", reqString); 160 // m_log.DebugFormat("[GRID USER CONNECTOR]: queryString = {0}", reqString);
160 try 161 try
161 { 162 {
162 string reply = SynchronousRestFormsRequester.MakeRequest("POST", 163 string reply = SynchronousRestFormsRequester.MakeRequest("POST",
163 m_ServerURI + "/griduser", 164 uri,
164 reqString); 165 reqString);
165 if (reply != string.Empty) 166 if (reply != string.Empty)
166 { 167 {
@@ -182,7 +183,7 @@ namespace OpenSim.Services.Connectors
182 } 183 }
183 catch (Exception e) 184 catch (Exception e)
184 { 185 {
185 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server: {0}", e.Message); 186 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server at {0}: {1}", uri, e.Message);
186 } 187 }
187 188
188 return false; 189 return false;
@@ -191,11 +192,12 @@ namespace OpenSim.Services.Connectors
191 protected GridUserInfo Get(Dictionary<string, object> sendData) 192 protected GridUserInfo Get(Dictionary<string, object> sendData)
192 { 193 {
193 string reqString = ServerUtils.BuildQueryString(sendData); 194 string reqString = ServerUtils.BuildQueryString(sendData);
195 string uri = m_ServerURI + "/griduser";
194 // m_log.DebugFormat("[GRID USER CONNECTOR]: queryString = {0}", reqString); 196 // m_log.DebugFormat("[GRID USER CONNECTOR]: queryString = {0}", reqString);
195 try 197 try
196 { 198 {
197 string reply = SynchronousRestFormsRequester.MakeRequest("POST", 199 string reply = SynchronousRestFormsRequester.MakeRequest("POST",
198 m_ServerURI + "/griduser", 200 uri,
199 reqString); 201 reqString);
200 if (reply != string.Empty) 202 if (reply != string.Empty)
201 { 203 {
@@ -216,7 +218,7 @@ namespace OpenSim.Services.Connectors
216 } 218 }
217 catch (Exception e) 219 catch (Exception e)
218 { 220 {
219 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server: {0}", e.Message); 221 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server at {0}: {1}", uri, e.Message);
220 } 222 }
221 223
222 return null; 224 return null;
@@ -235,11 +237,12 @@ namespace OpenSim.Services.Connectors
235 237
236 string reply = string.Empty; 238 string reply = string.Empty;
237 string reqString = ServerUtils.BuildQueryString(sendData); 239 string reqString = ServerUtils.BuildQueryString(sendData);
240 string uri = m_ServerURI + "/griduser";
238 //m_log.DebugFormat("[PRESENCE CONNECTOR]: queryString = {0}", reqString); 241 //m_log.DebugFormat("[PRESENCE CONNECTOR]: queryString = {0}", reqString);
239 try 242 try
240 { 243 {
241 reply = SynchronousRestFormsRequester.MakeRequest("POST", 244 reply = SynchronousRestFormsRequester.MakeRequest("POST",
242 m_ServerURI + "/griduser", 245 uri,
243 reqString); 246 reqString);
244 if (reply == null || (reply != null && reply == string.Empty)) 247 if (reply == null || (reply != null && reply == string.Empty))
245 { 248 {
@@ -249,7 +252,7 @@ namespace OpenSim.Services.Connectors
249 } 252 }
250 catch (Exception e) 253 catch (Exception e)
251 { 254 {
252 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server: {0}", e.Message); 255 m_log.DebugFormat("[GRID USER CONNECTOR]: Exception when contacting grid user server at {0}: {1}", uri, e.Message);
253 } 256 }
254 257
255 List<GridUserInfo> rinfos = new List<GridUserInfo>(); 258 List<GridUserInfo> rinfos = new List<GridUserInfo>();