From 1f4f09ad698a25e8aaf1f996fb96e875c8d9704b Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Thu, 27 Feb 2014 20:35:56 +0000 Subject: [PATCH] Add more details to InvalidOperationException logging in SychronousRestFormsRequest.MakeRequest(). --- OpenSim/Framework/WebUtil.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 54a6c0ce4b..07c9e3f0b1 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs @@ -1064,10 +1064,11 @@ namespace OpenSim.Framework } } } - catch (System.InvalidOperationException) + catch (System.InvalidOperationException e) { - // This is what happens when there is invalid XML - m_log.DebugFormat("[FORMS]: InvalidOperationException on receiving {0} {1}", verb, requestUrl); + m_log.Debug( + string.Format( + "[FORMS]: InvalidOperationException on response from {0} {1} ", verb, requestUrl), e); } }