diff options
Diffstat (limited to 'OpenSim/Services/Connectors/MapImage')
-rw-r--r-- | OpenSim/Services/Connectors/MapImage/MapImageServicesConnector.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Services/Connectors/MapImage/MapImageServicesConnector.cs b/OpenSim/Services/Connectors/MapImage/MapImageServicesConnector.cs index 6095598..ba4c3c5 100644 --- a/OpenSim/Services/Connectors/MapImage/MapImageServicesConnector.cs +++ b/OpenSim/Services/Connectors/MapImage/MapImageServicesConnector.cs | |||
@@ -176,29 +176,32 @@ namespace OpenSim.Services.Connectors | |||
176 | } | 176 | } |
177 | else if (replyData.ContainsKey("Result") && (replyData["Result"].ToString().ToLower() == "failure")) | 177 | else if (replyData.ContainsKey("Result") && (replyData["Result"].ToString().ToLower() == "failure")) |
178 | { | 178 | { |
179 | m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Registration failed: {0}", replyData["Message"].ToString()); | 179 | reason = string.Format("Map post to {0} failed: {1}", uri, replyData["Message"].ToString()); |
180 | reason = replyData["Message"].ToString(); | 180 | m_log.WarnFormat("[MAP IMAGE CONNECTOR]: {0}", reason); |
181 | |||
181 | return false; | 182 | return false; |
182 | } | 183 | } |
183 | else if (!replyData.ContainsKey("Result")) | 184 | else if (!replyData.ContainsKey("Result")) |
184 | { | 185 | { |
185 | m_log.DebugFormat("[MAP IMAGE CONNECTOR]: reply data does not contain result field"); | 186 | reason = string.Format("Reply data from {0} does not contain result field", uri); |
187 | m_log.WarnFormat("[MAP IMAGE CONNECTOR]: {0}", reason); | ||
186 | } | 188 | } |
187 | else | 189 | else |
188 | { | 190 | { |
189 | m_log.DebugFormat("[MAP IMAGE CONNECTOR]: unexpected result {0}", replyData["Result"].ToString()); | 191 | reason = string.Format("Unexpected result {0} from {1}" + replyData["Result"].ToString(), uri); |
190 | reason = "Unexpected result " + replyData["Result"].ToString(); | 192 | m_log.WarnFormat("[MAP IMAGE CONNECTOR]: {0}", reason); |
191 | } | 193 | } |
192 | |||
193 | } | 194 | } |
194 | else | 195 | else |
195 | { | 196 | { |
196 | m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Map post received null reply"); | 197 | reason = string.Format("Map post received null reply from {0}", uri); |
198 | m_log.WarnFormat("[MAP IMAGE CONNECTOR]: {0}", reason); | ||
197 | } | 199 | } |
198 | } | 200 | } |
199 | catch (Exception e) | 201 | catch (Exception e) |
200 | { | 202 | { |
201 | m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Exception when contacting map server at {0}: {1}", uri, e.Message); | 203 | reason = string.Format("Exception when posting to map server at {0}: {1}", uri, e.Message); |
204 | m_log.WarnFormat("[MAP IMAGE CONNECTOR]: {0}", reason); | ||
202 | } | 205 | } |
203 | finally | 206 | finally |
204 | { | 207 | { |