aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2015-02-19 23:50:25 +0000
committerJustin Clark-Casey (justincc)2015-02-19 23:50:25 +0000
commitc90c22ed2804a3cc2b73ece42db5306782986bf4 (patch)
tree20eeaf07d3f0fc41b6ab3ccd3ef2404a16f10063
parentMake any exception that gets to LLClientView.ProcessSpecificPacketAsync() tel... (diff)
downloadopensim-SC-c90c22ed2804a3cc2b73ece42db5306782986bf4.zip
opensim-SC-c90c22ed2804a3cc2b73ece42db5306782986bf4.tar.gz
opensim-SC-c90c22ed2804a3cc2b73ece42db5306782986bf4.tar.bz2
opensim-SC-c90c22ed2804a3cc2b73ece42db5306782986bf4.tar.xz
If HGAssetMapper.PostAsset fails then be more explicit about the uuid, type, size and base asset uuid of the failure for debugging purposes.
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs29
1 files changed, 27 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
index 2be3117..0ed8403 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
@@ -480,12 +480,37 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
480 { 480 {
481 asset = m_scene.AssetService.Get(uuid.ToString()); 481 asset = m_scene.AssetService.Get(uuid.ToString());
482 if (asset == null) 482 if (asset == null)
483 {
483 m_log.DebugFormat("[HG ASSET MAPPER]: Could not find asset {0}", uuid); 484 m_log.DebugFormat("[HG ASSET MAPPER]: Could not find asset {0}", uuid);
485 }
484 else 486 else
485 success &= PostAsset(userAssetURL, asset); 487 {
488 try
489 {
490 success &= PostAsset(userAssetURL, asset);
491 }
492 catch (Exception e)
493 {
494 m_log.Error(
495 string.Format(
496 "[HG ASSET MAPPER]: Failed to post asset {0} (type {1}, length {2}) referenced from {3} to {4} with exception ",
497 asset.ID, asset.Type, asset.Data.Length, assetID, userAssetURL),
498 e);
499
500 // For debugging purposes for now we will continue to throw the exception up the stack as was already happening. However, after
501 // debugging we may want to simply report the failure if we can tell this is due to a failure
502 // with a particular asset and not a destination network failure where all asset posts will fail (and
503 // generate large amounts of log spam).
504 throw e;
505 }
506 }
486 } 507 }
487 else 508 else
488 m_log.DebugFormat("[HG ASSET MAPPER]: Didn't post asset {0} because it already exists in asset server {1}", uuid, userAssetURL); 509 {
510 m_log.DebugFormat(
511 "[HG ASSET MAPPER]: Didn't post asset {0} referenced from {1} because it already exists in asset server {2}",
512 uuid, assetID, userAssetURL);
513 }
489 } 514 }
490 515
491 if (!success) 516 if (!success)