diff options
author | Sean Dague | 2007-11-01 22:01:26 +0000 |
---|---|---|
committer | Sean Dague | 2007-11-01 22:01:26 +0000 |
commit | 21e47f8ef04bd345eb3c8e0823392a2dbc269e4e (patch) | |
tree | af3e23b20ba917983bc4b3387b358cd65cedc1c9 /OpenSim/Grid/AssetServer | |
parent | Need to clean up resources when creating/updating assets (diff) | |
download | opensim-SC_OLD-21e47f8ef04bd345eb3c8e0823392a2dbc269e4e.zip opensim-SC_OLD-21e47f8ef04bd345eb3c8e0823392a2dbc269e4e.tar.gz opensim-SC_OLD-21e47f8ef04bd345eb3c8e0823392a2dbc269e4e.tar.bz2 opensim-SC_OLD-21e47f8ef04bd345eb3c8e0823392a2dbc269e4e.tar.xz |
debug tracing for asset server hangs
Diffstat (limited to 'OpenSim/Grid/AssetServer')
-rw-r--r-- | OpenSim/Grid/AssetServer/RestService.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index 0cad643..b13d8ea 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs | |||
@@ -17,6 +17,7 @@ namespace OpenSim.Grid.AssetServer | |||
17 | 17 | ||
18 | public override byte[] Handle(string path, Stream request) | 18 | public override byte[] Handle(string path, Stream request) |
19 | { | 19 | { |
20 | MainLog.Instance.Verbose("REST", "In Handle"); | ||
20 | string param = GetParam(path); | 21 | string param = GetParam(path); |
21 | byte[] result = new byte[] {}; | 22 | byte[] result = new byte[] {}; |
22 | try | 23 | try |
@@ -51,6 +52,7 @@ namespace OpenSim.Grid.AssetServer | |||
51 | StreamReader sr = new StreamReader(ms); | 52 | StreamReader sr = new StreamReader(ms); |
52 | 53 | ||
53 | result = ms.GetBuffer(); | 54 | result = ms.GetBuffer(); |
55 | MainLog.Instance.Verbose("REST", "Buffer: {0}", result); | ||
54 | Array.Resize<byte>(ref result, (int) ms.Length); | 56 | Array.Resize<byte>(ref result, (int) ms.Length); |
55 | } | 57 | } |
56 | else | 58 | else |
@@ -69,6 +71,7 @@ namespace OpenSim.Grid.AssetServer | |||
69 | public GetAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider) | 71 | public GetAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider) |
70 | : base("GET", "/assets") | 72 | : base("GET", "/assets") |
71 | { | 73 | { |
74 | MainLog.Instance.Verbose("REST", "In Get Request"); | ||
72 | m_assetManager = assetManager; | 75 | m_assetManager = assetManager; |
73 | m_assetProvider = assetProvider; | 76 | m_assetProvider = assetProvider; |
74 | } | 77 | } |
@@ -104,4 +107,4 @@ namespace OpenSim.Grid.AssetServer | |||
104 | m_assetProvider = assetProvider; | 107 | m_assetProvider = assetProvider; |
105 | } | 108 | } |
106 | } | 109 | } |
107 | } \ No newline at end of file | 110 | } |