mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
debug tracing for asset server hangs
This commit is contained in:
@@ -71,7 +71,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
ARequest req = new ARequest();
|
||||
req.AssetID = assetID;
|
||||
req.IsTexture = isTexture;
|
||||
MainLog.Instance.Verbose("ASSET","Adding {0} to request queue", assetID);
|
||||
_assetRequests.Enqueue(req);
|
||||
MainLog.Instance.Verbose("ASSET","Added {0} to request queue", assetID);
|
||||
}
|
||||
|
||||
public virtual void UpdateAsset(AssetBase asset)
|
||||
@@ -185,4 +187,4 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
assets.ForEach(action);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,9 +108,11 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
XmlSerializer xs = new XmlSerializer(typeof (AssetBase));
|
||||
xs.Serialize(s, asset);
|
||||
RestClient rc = new RestClient(_assetServerUrl);
|
||||
MainLog.Instance.Verbose("ASSET", "Storing {0}", rc);
|
||||
rc.AddResourcePath("assets");
|
||||
rc.RequestMethod = "POST";
|
||||
rc.Request(s);
|
||||
MainLog.Instance.Verbose("ASSET", "Stored {0}", rc);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -131,4 +133,4 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user