diff options
author | Mike Mazur | 2009-02-16 02:28:43 +0000 |
---|---|---|
committer | Mike Mazur | 2009-02-16 02:28:43 +0000 |
commit | efbb44b98af8b2b4d59c00b90034c10d6966f60f (patch) | |
tree | 67ade6119a3daff93808410263502ec48a448152 /OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs | |
parent | - removed OpenSim.Grid.AssetInventoryServer.Metadata class in favor of (diff) | |
download | opensim-SC_OLD-efbb44b98af8b2b4d59c00b90034c10d6966f60f.zip opensim-SC_OLD-efbb44b98af8b2b4d59c00b90034c10d6966f60f.tar.gz opensim-SC_OLD-efbb44b98af8b2b4d59c00b90034c10d6966f60f.tar.bz2 opensim-SC_OLD-efbb44b98af8b2b4d59c00b90034c10d6966f60f.tar.xz |
Standardize logging messages.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs index 384f5f0..26c34e9 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleAssetStoragePlugin.cs | |||
@@ -83,7 +83,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
83 | } | 83 | } |
84 | catch (Exception ex) | 84 | catch (Exception ex) |
85 | { | 85 | { |
86 | m_log.ErrorFormat("Failed reading data for asset {0} from {1}: {2}", assetID, filename, ex.Message); | 86 | m_log.ErrorFormat("[SIMPLEASSETSTORAGE]: Failed reading data for asset {0} from {1}: {2}", assetID, filename, ex.Message); |
87 | ret = BackendResponse.Failure; | 87 | ret = BackendResponse.Failure; |
88 | } | 88 | } |
89 | } | 89 | } |
@@ -114,7 +114,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
114 | } | 114 | } |
115 | catch (Exception ex) | 115 | catch (Exception ex) |
116 | { | 116 | { |
117 | m_log.ErrorFormat("Failed reading data for asset {0} from {1}: {2}", assetID, filename, ex.Message); | 117 | m_log.ErrorFormat("[SIMPLEASSETSTORAGE]: Failed reading data for asset {0} from {1}: {2}", assetID, filename, ex.Message); |
118 | ret = BackendResponse.Failure; | 118 | ret = BackendResponse.Failure; |
119 | } | 119 | } |
120 | 120 | ||
@@ -165,7 +165,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
165 | } | 165 | } |
166 | catch (Exception ex) | 166 | catch (Exception ex) |
167 | { | 167 | { |
168 | m_log.ErrorFormat("Failed writing data for asset {0} to {1}: {2}", asset.FullID, filename, ex.Message); | 168 | m_log.ErrorFormat("[SIMPLEASSETSTORAGE]: Failed writing data for asset {0} to {1}: {2}", asset.FullID, filename, ex.Message); |
169 | ret = BackendResponse.Failure; | 169 | ret = BackendResponse.Failure; |
170 | } | 170 | } |
171 | 171 | ||
@@ -203,7 +203,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
203 | LoadFiles(DEFAULT_DATA_DIR, false); | 203 | LoadFiles(DEFAULT_DATA_DIR, false); |
204 | LoadFiles(TEMP_DATA_DIR, true); | 204 | LoadFiles(TEMP_DATA_DIR, true); |
205 | 205 | ||
206 | m_log.InfoFormat("Initialized the store index with metadata for {0} assets", | 206 | m_log.InfoFormat("[SIMPLEASSETSTORAGE]: Initialized the store index with metadata for {0} assets", |
207 | metadataStorage.Count); | 207 | metadataStorage.Count); |
208 | } | 208 | } |
209 | 209 | ||
@@ -212,7 +212,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
212 | /// </summary> | 212 | /// </summary> |
213 | public void Initialise() | 213 | public void Initialise() |
214 | { | 214 | { |
215 | m_log.InfoFormat("[ASSET]: {0} cannot be default-initialized!", Name); | 215 | m_log.InfoFormat("[SIMPLEASSETSTORAGE]: {0} cannot be default-initialized!", Name); |
216 | throw new PluginNotInitialisedException(Name); | 216 | throw new PluginNotInitialisedException(Name); |
217 | } | 217 | } |
218 | 218 | ||
@@ -239,7 +239,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
239 | if (Directory.Exists(TEMP_DATA_DIR)) | 239 | if (Directory.Exists(TEMP_DATA_DIR)) |
240 | { | 240 | { |
241 | try { Directory.Delete(TEMP_DATA_DIR); } | 241 | try { Directory.Delete(TEMP_DATA_DIR); } |
242 | catch (Exception ex) { m_log.Error(ex.Message); } | 242 | catch (Exception ex) { m_log.Error("[SIMPLEASSETSTORAGE]: " + ex.Message); } |
243 | } | 243 | } |
244 | } | 244 | } |
245 | 245 | ||
@@ -251,7 +251,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
251 | try { Directory.CreateDirectory(folder); } | 251 | try { Directory.CreateDirectory(folder); } |
252 | catch (Exception ex) | 252 | catch (Exception ex) |
253 | { | 253 | { |
254 | m_log.Warn(ex.Message); | 254 | m_log.Warn("[SIMPLEASSETSTORAGE]: " + ex.Message); |
255 | return; | 255 | return; |
256 | } | 256 | } |
257 | } | 257 | } |
@@ -283,7 +283,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
283 | } | 283 | } |
284 | catch (Exception ex) | 284 | catch (Exception ex) |
285 | { | 285 | { |
286 | m_log.Warn(ex.Message); | 286 | m_log.Warn("[SIMPLEASSETSTORAGE]: " + ex.Message); |
287 | } | 287 | } |
288 | } | 288 | } |
289 | } | 289 | } |