@@ -5,6 +5,7 @@ namespace DotNet.Testcontainers.Containers
55 using System . Text ;
66 using System . Threading ;
77 using System . Threading . Tasks ;
8+ using DotNet . Testcontainers ;
89 using DotNet . Testcontainers . Configurations ;
910 using ICSharpCode . SharpZipLib . Tar ;
1011 using Microsoft . Extensions . Logging ;
@@ -73,9 +74,7 @@ public async Task AddAsync(IResourceMapping resourceMapping, CancellationToken c
7374
7475 var fileModeOctal = Convert . ToString ( tarEntry . TarHeader . Mode , 8 ) . PadLeft ( 4 , '0' ) ;
7576
76- _logger . LogInformation (
77- "Add file to tar archive: Content length: {Length} byte(s), Target file: \" {Target}\" , UID: {Uid}, GID: {Gid}, Mode: {Mode}" ,
78- tarEntry . Size , targetFilePath , tarEntry . TarHeader . UserId , tarEntry . TarHeader . GroupId , fileModeOctal ) ;
77+ _logger . AddFileToTarArchive ( tarEntry . Size , targetFilePath , tarEntry . TarHeader . UserId , tarEntry . TarHeader . GroupId , fileModeOctal ) ;
7978
8079 await PutNextEntryAsync ( tarEntry , ct )
8180 . ConfigureAwait ( false ) ;
@@ -153,9 +152,7 @@ public async Task AddAsync(DirectoryInfo directory, FileInfo file, uint uid, uin
153152
154153 var fileModeOctal = Convert . ToString ( tarEntry . TarHeader . Mode , 8 ) . PadLeft ( 4 , '0' ) ;
155154
156- _logger . LogInformation (
157- "Add file to tar archive: Source file: \" {Source}\" , Target file: \" {Target}\" , UID: {Uid}, GID: {Gid}, Mode: {Mode}" ,
158- tarEntry . Size , targetFilePath , tarEntry . TarHeader . UserId , tarEntry . TarHeader . GroupId , fileModeOctal ) ;
155+ _logger . AddFileToTarArchive ( file . FullName , targetFilePath , tarEntry . TarHeader . UserId , tarEntry . TarHeader . GroupId , fileModeOctal ) ;
159156
160157 await PutNextEntryAsync ( tarEntry , ct )
161158 . ConfigureAwait ( false ) ;
0 commit comments