From a13a4c61448380852df3fba05d2c88710c28e0a9 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 21 Jul 2008 17:13:32 +0000 Subject: * minor: change misleading 'all assets found' message to instead tell how many were actually located --- .../Modules/World/Archiver/AssetsArchiver.cs | 23 ++++++++-------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs') diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs index 9a1b560..81d85d2 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs @@ -121,23 +121,16 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver { AssetBase asset = m_assets[uuid]; - if (asset != null) - { - string extension = string.Empty; - - if (ArchiveConstants.ASSET_TYPE_TO_EXTENSION.ContainsKey(asset.Type)) - { - extension = ArchiveConstants.ASSET_TYPE_TO_EXTENSION[asset.Type]; - } - - archive.AddFile( - ArchiveConstants.ASSETS_PATH + uuid.ToString() + extension, - asset.Data); - } - else + string extension = string.Empty; + + if (ArchiveConstants.ASSET_TYPE_TO_EXTENSION.ContainsKey(asset.Type)) { - m_log.WarnFormat("[ARCHIVER]: Could not find asset {0} to archive", uuid); + extension = ArchiveConstants.ASSET_TYPE_TO_EXTENSION[asset.Type]; } + + archive.AddFile( + ArchiveConstants.ASSETS_PATH + uuid.ToString() + extension, + asset.Data); } } } -- cgit v1.1