diff options
author | Justin Clarke Casey | 2008-06-14 17:47:25 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-14 17:47:25 +0000 |
commit | 4af62865122121069638ed51f3c799a265800a4c (patch) | |
tree | 8422400ae1b3ec7480098c63b250f6feb3736154 /OpenSim/Framework/Communications/Cache | |
parent | * Enables maptile display in grid mode for simulators that are not on the sam... (diff) | |
download | opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.zip opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.gz opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.bz2 opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetServerBase.cs | 8 |
1 files changed, 6 insertions, 2 deletions
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; | |||
31 | using libsecondlife; | 31 | using libsecondlife; |
32 | using log4net; | 32 | using log4net; |
33 | using OpenSim.Framework.AssetLoader.Filesystem; | 33 | using OpenSim.Framework.AssetLoader.Filesystem; |
34 | using OpenSim.Framework.Statistics; | ||
34 | 35 | ||
35 | namespace OpenSim.Framework.Communications.Cache | 36 | namespace OpenSim.Framework.Communications.Cache |
36 | { | 37 | { |
@@ -80,6 +81,9 @@ namespace OpenSim.Framework.Communications.Cache | |||
80 | { | 81 | { |
81 | m_log.ErrorFormat("[ASSET]: Asset request for {0} threw exception {1}", req.AssetID, e); | 82 | m_log.ErrorFormat("[ASSET]: Asset request for {0} threw exception {1}", req.AssetID, e); |
82 | 83 | ||
84 | if (StatsManager.SimExtraStats != null) | ||
85 | StatsManager.SimExtraStats.AddAssetServiceRequestFailure(); | ||
86 | |||
83 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); | 87 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); |
84 | 88 | ||
85 | return; | 89 | return; |
@@ -87,13 +91,13 @@ namespace OpenSim.Framework.Communications.Cache | |||
87 | 91 | ||
88 | if (asset != null) | 92 | if (asset != null) |
89 | { | 93 | { |
90 | m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); | 94 | //m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); |
91 | 95 | ||
92 | m_receiver.AssetReceived(asset, req.IsTexture); | 96 | m_receiver.AssetReceived(asset, req.IsTexture); |
93 | } | 97 | } |
94 | else | 98 | else |
95 | { | 99 | { |
96 | m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); | 100 | //m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); |
97 | 101 | ||
98 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); | 102 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); |
99 | } | 103 | } |