aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
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/MapImage/MapImageServiceConnector.cs
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 '')
-rw-r--r--OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs b/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
index e46714e..30bfb70 100644
--- a/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
+++ b/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
@@ -97,11 +97,12 @@ namespace OpenSim.Services.Connectors
97 sendData["DATA"] = Convert.ToBase64String(jpgData); 97 sendData["DATA"] = Convert.ToBase64String(jpgData);
98 98
99 string reqString = ServerUtils.BuildQueryString(sendData); 99 string reqString = ServerUtils.BuildQueryString(sendData);
100 string uri = m_ServerURI + "/map";
100 101
101 try 102 try
102 { 103 {
103 string reply = SynchronousRestFormsRequester.MakeRequest("POST", 104 string reply = SynchronousRestFormsRequester.MakeRequest("POST",
104 m_ServerURI + "/map", 105 uri,
105 reqString); 106 reqString);
106 if (reply != string.Empty) 107 if (reply != string.Empty)
107 { 108 {
@@ -135,7 +136,7 @@ namespace OpenSim.Services.Connectors
135 } 136 }
136 catch (Exception e) 137 catch (Exception e)
137 { 138 {
138 m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Exception when contacting grid server: {0}", e.Message); 139 m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Exception when contacting map server at {0}: {1}", uri, e.Message);
139 } 140 }
140 finally 141 finally
141 { 142 {