From 4af62865122121069638ed51f3c799a265800a4c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 14 Jun 2008 17:47:25 +0000 Subject: * Start recording asset request failures * This includes problems such as connection failures and timeouts. It does not include 'asset not found' replies from the asset service. --- OpenSim/Framework/Communications/Cache/AssetServerBase.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/AssetServerBase.cs') diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 053cb0f..74b1976 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs @@ -31,6 +31,7 @@ using System.Threading; using libsecondlife; using log4net; using OpenSim.Framework.AssetLoader.Filesystem; +using OpenSim.Framework.Statistics; namespace OpenSim.Framework.Communications.Cache { @@ -80,6 +81,9 @@ namespace OpenSim.Framework.Communications.Cache { m_log.ErrorFormat("[ASSET]: Asset request for {0} threw exception {1}", req.AssetID, e); + if (StatsManager.SimExtraStats != null) + StatsManager.SimExtraStats.AddAssetServiceRequestFailure(); + m_receiver.AssetNotFound(req.AssetID, req.IsTexture); return; @@ -87,13 +91,13 @@ namespace OpenSim.Framework.Communications.Cache if (asset != null) { - m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); + //m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); m_receiver.AssetReceived(asset, req.IsTexture); } else { - m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); + //m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); m_receiver.AssetNotFound(req.AssetID, req.IsTexture); } -- cgit v1.1