From 89f2148f56eccb773b0241e16d5d5e8029e9aee7 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 23 Aug 2008 21:44:57 +0000 Subject: Mantis#2036. Thank you kindly, HomerHorwitz for a patch that: Not enough logging. Added IP endpoing of request to the log messages on lookup-failure --- OpenSim/Grid/GridServer/GridManager.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index 7c9e776..eb4aea6 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs @@ -718,7 +718,11 @@ namespace OpenSim.Grid.GridServer { LLUUID regionID = new LLUUID((string)requestData["region_UUID"]); simData = GetRegion(regionID); - if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionID {0}", regionID); + if (simData == null) + { + m_log.WarnFormat("[DATA] didn't find region for regionID {0} from {1}", + regionID, request.Params.Count > 1 ? request.Params[1] : "unknwon source"); + } } else if (requestData.ContainsKey("region_handle")) { @@ -726,13 +730,21 @@ namespace OpenSim.Grid.GridServer //CFK: Console.WriteLine("requesting data for region " + (string) requestData["region_handle"]); ulong regionHandle = Convert.ToUInt64((string)requestData["region_handle"]); simData = GetRegion(regionHandle); - if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionHandle {0}", regionHandle); + if (simData == null) + { + m_log.WarnFormat("[DATA] didn't find region for regionHandle {0} from {1}", + regionHandle, request.Params.Count > 1 ? request.Params[1] : "unknwon source"); + } } else if (requestData.ContainsKey("region_name_search")) { string regionName = (string)requestData["region_name_search"]; simData = GetRegion(regionName); - if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionName {0}", regionName); + if (simData == null) + { + m_log.WarnFormat("[DATA] didn't find region for regionName {0} from {1}", + regionName, request.Params.Count > 1 ? request.Params[1] : "unknwon source"); + } } else m_log.Warn("[DATA] regionlookup without regionID, regionHandle or regionHame"); -- cgit v1.1