From 45b26d45400f0df8c8a9991290ef712a37f25fd1 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 28 May 2008 17:54:12 +0000 Subject: * Minor: Log message clean up in archiver code --- .../Environment/Modules/World/Archiver/ArchiveWriteRequest.cs | 2 ++ .../Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/World/Archiver') diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs index b952200..576286d 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs @@ -121,6 +121,8 @@ namespace OpenSim.Region.Environment } archive.WriteTar(m_savePath); + + m_log.InfoFormat("[ARCHIVER]: Wrote out OpenSimulator archive {0}", m_savePath); } /// diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs b/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs index e951755..1301eb3 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs @@ -113,7 +113,7 @@ namespace OpenSim.Region.Environment // file size in bytes (12) int fileSize = data.Length; - m_log.DebugFormat("[TAR ARCHIVE]: File size of {0} is {1}", filePath, fileSize); + m_log.DebugFormat("[TAR ARCHIVE WRITER]: File size of {0} is {1}", filePath, fileSize); byte[] fileSizeBytes = ConvertDecimalToPaddedOctalBytes(fileSize, 11); @@ -146,7 +146,7 @@ namespace OpenSim.Region.Environment checksum += b; } - m_log.DebugFormat("[TAR ARCHIVE]: Decimal header checksum is {0}", checksum); + m_log.DebugFormat("[TAR ARCHIVE WRITER]: Decimal header checksum is {0}", checksum); byte[] checkSumBytes = ConvertDecimalToPaddedOctalBytes(checksum, 6); //byte[] checkSumBytes = m_asciiEncoding.GetBytes("007520"); @@ -165,7 +165,7 @@ namespace OpenSim.Region.Environment { int paddingRequired = 512 - (data.Length % 512); - m_log.DebugFormat("Padding data with {0} bytes", paddingRequired); + m_log.DebugFormat("[TAR ARCHIVE WRITER]: Padding data with {0} bytes", paddingRequired); byte[] padding = new byte[paddingRequired]; bw.Write(padding); -- cgit v1.1