diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs b/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs index 4bc37af..f70a93d 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/TarArchiveWriter.cs | |||
@@ -29,8 +29,8 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Text; | 31 | using System.Text; |
32 | using System.Reflection; | 32 | //using System.Reflection; |
33 | using log4net; | 33 | //using log4net; |
34 | 34 | ||
35 | namespace OpenSim.Region.Environment | 35 | namespace OpenSim.Region.Environment |
36 | { | 36 | { |
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment | |||
39 | /// </summary> | 39 | /// </summary> |
40 | public class TarArchiveWriter | 40 | public class TarArchiveWriter |
41 | { | 41 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 42 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 43 | ||
44 | protected Dictionary<string, byte[]> m_files = new Dictionary<string, byte[]>(); | 44 | protected Dictionary<string, byte[]> m_files = new Dictionary<string, byte[]>(); |
45 | 45 | ||
@@ -111,7 +111,7 @@ namespace OpenSim.Region.Environment | |||
111 | 111 | ||
112 | // file size in bytes (12) | 112 | // file size in bytes (12) |
113 | int fileSize = data.Length; | 113 | int fileSize = data.Length; |
114 | m_log.DebugFormat("[TAR ARCHIVE WRITER]: File size of {0} is {1}", filePath, fileSize); | 114 | //m_log.DebugFormat("[TAR ARCHIVE WRITER]: File size of {0} is {1}", filePath, fileSize); |
115 | 115 | ||
116 | byte[] fileSizeBytes = ConvertDecimalToPaddedOctalBytes(fileSize, 11); | 116 | byte[] fileSizeBytes = ConvertDecimalToPaddedOctalBytes(fileSize, 11); |
117 | 117 | ||
@@ -144,7 +144,7 @@ namespace OpenSim.Region.Environment | |||
144 | checksum += b; | 144 | checksum += b; |
145 | } | 145 | } |
146 | 146 | ||
147 | m_log.DebugFormat("[TAR ARCHIVE WRITER]: Decimal header checksum is {0}", checksum); | 147 | //m_log.DebugFormat("[TAR ARCHIVE WRITER]: Decimal header checksum is {0}", checksum); |
148 | 148 | ||
149 | byte[] checkSumBytes = ConvertDecimalToPaddedOctalBytes(checksum, 6); | 149 | byte[] checkSumBytes = ConvertDecimalToPaddedOctalBytes(checksum, 6); |
150 | 150 | ||
@@ -162,7 +162,7 @@ namespace OpenSim.Region.Environment | |||
162 | { | 162 | { |
163 | int paddingRequired = 512 - (data.Length % 512); | 163 | int paddingRequired = 512 - (data.Length % 512); |
164 | 164 | ||
165 | m_log.DebugFormat("[TAR ARCHIVE WRITER]: Padding data with {0} bytes", paddingRequired); | 165 | //m_log.DebugFormat("[TAR ARCHIVE WRITER]: Padding data with {0} bytes", paddingRequired); |
166 | 166 | ||
167 | byte[] padding = new byte[paddingRequired]; | 167 | byte[] padding = new byte[paddingRequired]; |
168 | bw.Write(padding); | 168 | bw.Write(padding); |