diff options
author | Justin Clark-Casey (justincc) | 2012-02-07 21:40:28 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-02-07 21:40:28 +0000 |
commit | 1f402fdf5e8ef53a07f98c4447946805791d26bc (patch) | |
tree | d7a0ea0ee0538e0a14bb69dd2e76cf9ac43e34b5 /OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | |
parent | Add TestAddTaskInventoryItem() (diff) | |
download | opensim-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/Friends/FriendsSimConnector.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs index d0a20fc..eea9853 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | |||
@@ -139,12 +139,11 @@ namespace OpenSim.Services.Connectors.Friends | |||
139 | return false; | 139 | return false; |
140 | 140 | ||
141 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: region: {0}", region.ExternalHostName + ":" + region.HttpPort); | 141 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: region: {0}", region.ExternalHostName + ":" + region.HttpPort); |
142 | string uri = "http://" + region.ExternalHostName + ":" + region.HttpPort + "/friends"; | ||
143 | |||
142 | try | 144 | try |
143 | { | 145 | { |
144 | string url = "http://" + region.ExternalHostName + ":" + region.HttpPort; | 146 | string reply = SynchronousRestFormsRequester.MakeRequest("POST", uri, reqString); |
145 | string reply = SynchronousRestFormsRequester.MakeRequest("POST", | ||
146 | url + "/friends", | ||
147 | reqString); | ||
148 | if (reply != string.Empty) | 147 | if (reply != string.Empty) |
149 | { | 148 | { |
150 | Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(reply); | 149 | Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(reply); |
@@ -165,7 +164,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
165 | } | 164 | } |
166 | catch (Exception e) | 165 | catch (Exception e) |
167 | { | 166 | { |
168 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: Exception when contacting remote sim: {0}", e.ToString()); | 167 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: Exception when contacting remote sim at {0}: {1}", uri, e.Message); |
169 | } | 168 | } |
170 | 169 | ||
171 | return false; | 170 | return false; |