Log errors in MakeRequest() as INFO, not ERROR. Some communications problems are benign (e.g., can't send Friend status update to a region that is down), so don't log them as ERROR so soon. We rethrow the exception, so the caller can still decide to log the error as an ERROR.

Resolves http://opensimulator.org/mantis/view.php?id=7077
0.8.0.3
Oren Hurvitz 2014-03-27 09:43:03 +02:00
parent af54e6f370
commit 76add0fdb0
1 changed files with 2 additions and 2 deletions

View File

@ -1026,7 +1026,7 @@ namespace OpenSim.Framework
}
catch (Exception e)
{
m_log.ErrorFormat("[FORMS]: Error sending request to {0}: {1}. Request: {2}", requestUrl, e.Message,
m_log.InfoFormat("[FORMS]: Error sending request to {0}: {1}. Request: {2}", requestUrl, e.Message,
obj.Length > WebUtil.MaxRequestDiagLength ? obj.Remove(WebUtil.MaxRequestDiagLength) : obj);
throw e;
}
@ -1054,7 +1054,7 @@ namespace OpenSim.Framework
}
catch (Exception e)
{
m_log.ErrorFormat("[FORMS]: Error receiving response from {0}: {1}. Request: {2}", requestUrl, e.Message,
m_log.InfoFormat("[FORMS]: Error receiving response from {0}: {1}. Request: {2}", requestUrl, e.Message,
obj.Length > WebUtil.MaxRequestDiagLength ? obj.Remove(WebUtil.MaxRequestDiagLength) : obj);
throw e;
}