diff options
Standardize logging messages.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleInventoryStoragePlugin.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleInventoryStoragePlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleInventoryStoragePlugin.cs index e317ae3..fee8837 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleInventoryStoragePlugin.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/Simple/SimpleInventoryStoragePlugin.cs | |||
@@ -210,7 +210,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
210 | } | 210 | } |
211 | catch (Exception ex) | 211 | catch (Exception ex) |
212 | { | 212 | { |
213 | m_log.Error(ex.Message); | 213 | m_log.Error("[SIMPLEINVENTORYSTORAGE]: " + ex.Message); |
214 | ret = BackendResponse.Failure; | 214 | ret = BackendResponse.Failure; |
215 | } | 215 | } |
216 | } | 216 | } |
@@ -252,7 +252,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
252 | } | 252 | } |
253 | catch (Exception ex) | 253 | catch (Exception ex) |
254 | { | 254 | { |
255 | m_log.Error(ex.Message); | 255 | m_log.Error("[SIMPLEINVENTORYSTORAGE]: " + ex.Message); |
256 | ret = BackendResponse.Failure; | 256 | ret = BackendResponse.Failure; |
257 | } | 257 | } |
258 | } | 258 | } |
@@ -306,7 +306,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
306 | } | 306 | } |
307 | catch (Exception ex) | 307 | catch (Exception ex) |
308 | { | 308 | { |
309 | m_log.Error(ex.Message); | 309 | m_log.Error("[SIMPLEINVENTORYSTORAGE]: " + ex.Message); |
310 | ret = BackendResponse.Failure; | 310 | ret = BackendResponse.Failure; |
311 | } | 311 | } |
312 | } | 312 | } |
@@ -354,7 +354,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
354 | foreach (string match in matches) | 354 | foreach (string match in matches) |
355 | { | 355 | { |
356 | try { File.Delete(match); } | 356 | try { File.Delete(match); } |
357 | catch (Exception ex) { m_log.ErrorFormat("Failed to delete file {0}: {1}", match, ex.Message); } | 357 | catch (Exception ex) { m_log.ErrorFormat("[SIMPLEINVENTORYSTORAGE]: Failed to delete file {0}: {1}", match, ex.Message); } |
358 | } | 358 | } |
359 | 359 | ||
360 | ret = BackendResponse.Success; | 360 | ret = BackendResponse.Success; |
@@ -391,7 +391,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
391 | foreach (string match in matches) | 391 | foreach (string match in matches) |
392 | { | 392 | { |
393 | try { File.Delete(match); } | 393 | try { File.Delete(match); } |
394 | catch (Exception ex) { m_log.ErrorFormat("Failed to delete folder file {0}: {1}", match, ex.Message); } | 394 | catch (Exception ex) { m_log.ErrorFormat("[SIMPLEINVENTORYSTORAGE]: Failed to delete folder file {0}: {1}", match, ex.Message); } |
395 | } | 395 | } |
396 | 396 | ||
397 | ret = BackendResponse.Success; | 397 | ret = BackendResponse.Success; |
@@ -502,7 +502,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
502 | try { Directory.CreateDirectory(folder); } | 502 | try { Directory.CreateDirectory(folder); } |
503 | catch (Exception ex) | 503 | catch (Exception ex) |
504 | { | 504 | { |
505 | m_log.Warn(ex.Message); | 505 | m_log.Warn("[SIMPLEINVENTORYSTORAGE]: " + ex.Message); |
506 | return; | 506 | return; |
507 | } | 507 | } |
508 | } | 508 | } |
@@ -526,7 +526,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
526 | } | 526 | } |
527 | catch (Exception ex) | 527 | catch (Exception ex) |
528 | { | 528 | { |
529 | m_log.WarnFormat("Failed loading the index file {0}: {1}", indexPath, ex.Message); | 529 | m_log.WarnFormat("[SIMPLEINVENTORYSTORAGE]: Failed loading the index file {0}: {1}", indexPath, ex.Message); |
530 | } | 530 | } |
531 | 531 | ||
532 | if (ownerID != UUID.Zero && owner != null) | 532 | if (ownerID != UUID.Zero && owner != null) |
@@ -582,7 +582,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
582 | } | 582 | } |
583 | catch (Exception ex) | 583 | catch (Exception ex) |
584 | { | 584 | { |
585 | m_log.ErrorFormat("Failed loading inventory from {0}: {1}", folder, ex.Message); | 585 | m_log.ErrorFormat("[SIMPLEINVENTORYSTORAGE]: Failed loading inventory from {0}: {1}", folder, ex.Message); |
586 | } | 586 | } |
587 | } | 587 | } |
588 | 588 | ||
@@ -594,7 +594,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
594 | 594 | ||
595 | LoadFiles(DEFAULT_INVENTORY_DIR); | 595 | LoadFiles(DEFAULT_INVENTORY_DIR); |
596 | 596 | ||
597 | m_log.InfoFormat("Initialized the inventory index with data for {0} avatars", | 597 | m_log.InfoFormat("[SIMPLEINVENTORYSTORAGE]: Initialized the inventory index with data for {0} avatars", |
598 | inventories.Count); | 598 | inventories.Count); |
599 | } | 599 | } |
600 | 600 | ||
@@ -603,7 +603,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple | |||
603 | /// </summary> | 603 | /// </summary> |
604 | public void Initialise() | 604 | public void Initialise() |
605 | { | 605 | { |
606 | m_log.InfoFormat("[ASSET]: {0} cannot be default-initialized!", Name); | 606 | m_log.InfoFormat("[SIMPLEINVENTORYSTORAGE]: {0} cannot be default-initialized!", Name); |
607 | throw new PluginNotInitialisedException(Name); | 607 | throw new PluginNotInitialisedException(Name); |
608 | } | 608 | } |
609 | 609 | ||