aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMic Bowman2011-01-03 17:16:22 -0800
committerMic Bowman2011-01-03 17:16:22 -0800
commite0da281e3d70fbe1752815f5a7ae4b3ed0cf15ba (patch)
treeb04b54b8925bf774d919a85c2112c2e213072258 /OpenSim/Framework
parentMerge branch 'master' into cmickeyb (diff)
downloadopensim-SC_OLD-e0da281e3d70fbe1752815f5a7ae4b3ed0cf15ba.zip
opensim-SC_OLD-e0da281e3d70fbe1752815f5a7ae4b3ed0cf15ba.tar.gz
opensim-SC_OLD-e0da281e3d70fbe1752815f5a7ae4b3ed0cf15ba.tar.bz2
opensim-SC_OLD-e0da281e3d70fbe1752815f5a7ae4b3ed0cf15ba.tar.xz
Cleaned up debugging messages in the WebRequest handlers
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/WebUtil.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 1cd9054..a00ea88 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -146,7 +146,7 @@ namespace OpenSim.Framework
146 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout) 146 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout)
147 { 147 {
148 int reqnum = m_requestNumber++; 148 int reqnum = m_requestNumber++;
149 m_log.WarnFormat("[WEB UTIL]: <{0}> start osd request for {1}, method {2}",reqnum,url,method); 149 m_log.DebugFormat("[WEB UTIL]: <{0}> start osd request for {1}, method {2}",reqnum,url,method);
150 150
151 string errorMessage = "unknown error"; 151 string errorMessage = "unknown error";
152 int tickstart = Util.EnvironmentTickCount(); 152 int tickstart = Util.EnvironmentTickCount();
@@ -177,7 +177,7 @@ namespace OpenSim.Framework
177 { 177 {
178 string responseStr = null; 178 string responseStr = null;
179 responseStr = responseStream.GetStreamString(); 179 responseStr = responseStream.GetStreamString();
180 m_log.WarnFormat("[WEB UTIL]: <{0}> response is <{1}>",reqnum,responseStr); 180 // m_log.DebugFormat("[WEB UTIL]: <{0}> response is <{1}>",reqnum,responseStr);
181 return CanonicalizeResults(responseStr); 181 return CanonicalizeResults(responseStr);
182 } 182 }
183 } 183 }
@@ -197,9 +197,11 @@ namespace OpenSim.Framework
197 } 197 }
198 finally 198 finally
199 { 199 {
200 // This just dumps a warning for any operation that takes more than 100 ms
200 int tickdiff = Util.EnvironmentTickCountSubtract(tickstart); 201 int tickdiff = Util.EnvironmentTickCountSubtract(tickstart);
201 if (tickdiff > 100) 202 if (tickdiff > 100)
202 m_log.WarnFormat("[WEB UTIL]: request <{0}> took {1} milliseconds",reqnum,tickdiff); 203 m_log.WarnFormat("[WEB UTIL]: request <{0}> (URI:{1}, METHOD:{2}) took {3} milliseconds",
204 reqnum,url,method,tickdiff);
203 } 205 }
204 206
205 m_log.WarnFormat("[WEB UTIL] <{0}> request failed: {1}",reqnum,errorMessage); 207 m_log.WarnFormat("[WEB UTIL] <{0}> request failed: {1}",reqnum,errorMessage);
@@ -260,7 +262,7 @@ namespace OpenSim.Framework
260 { 262 {
261 int reqnum = m_requestNumber++; 263 int reqnum = m_requestNumber++;
262 string method = data["RequestMethod"] != null ? data["RequestMethod"] : "unknown"; 264 string method = data["RequestMethod"] != null ? data["RequestMethod"] : "unknown";
263 m_log.WarnFormat("[WEB UTIL]: <{0}> start form request for {1}, method {2}",reqnum,url,method); 265 m_log.DebugFormat("[WEB UTIL]: <{0}> start form request for {1}, method {2}",reqnum,url,method);
264 266
265 string errorMessage; 267 string errorMessage;
266 int tickstart = Util.EnvironmentTickCount(); 268 int tickstart = Util.EnvironmentTickCount();
@@ -321,7 +323,8 @@ namespace OpenSim.Framework
321 { 323 {
322 int tickdiff = Util.EnvironmentTickCountSubtract(tickstart); 324 int tickdiff = Util.EnvironmentTickCountSubtract(tickstart);
323 if (tickdiff > 100) 325 if (tickdiff > 100)
324 m_log.WarnFormat("[WEB UTIL]: request <{0}> took {1} milliseconds",reqnum,tickdiff); 326 m_log.WarnFormat("[WEB UTIL]: request <{0}> (URI:{1}, METHOD:{2}) took {3} milliseconds",
327 reqnum,url,method,tickdiff);
325 } 328 }
326 329
327 m_log.WarnFormat("[WEB UTIL]: <{0}> request failed: {1}",reqnum,errorMessage); 330 m_log.WarnFormat("[WEB UTIL]: <{0}> request failed: {1}",reqnum,errorMessage);