@@ -710,33 +710,6 @@ func filterJournalCore(journalData []byte, output io.Writer, filterRoots, filter
710710 filterRootSet := hash .NewHashSet (filterRoots ... )
711711 filterChunkSet := hash .NewHashSet (filterChunks ... )
712712
713- // Generate logging message
714- var logMessages []string
715- if len (filterRoots ) > 0 {
716- var rootStrings []string
717- for _ , h := range filterRoots {
718- rootStrings = append (rootStrings , h .String ())
719- }
720- if len (filterRoots ) == 1 {
721- logMessages = append (logMessages , fmt .Sprintf ("root hash: %s" , filterRoots [0 ].String ()))
722- } else {
723- logMessages = append (logMessages , fmt .Sprintf ("%d root hashes: %s" , len (filterRoots ), strings .Join (rootStrings , ", " )))
724- }
725- }
726- if len (filterChunks ) > 0 {
727- var chunkStrings []string
728- for _ , h := range filterChunks {
729- chunkStrings = append (chunkStrings , h .String ())
730- }
731- if len (filterChunks ) == 1 {
732- logMessages = append (logMessages , fmt .Sprintf ("chunk hash: %s" , filterChunks [0 ].String ()))
733- } else {
734- logMessages = append (logMessages , fmt .Sprintf ("%d chunk hashes: %s" , len (filterChunks ), strings .Join (chunkStrings , ", " )))
735- }
736- }
737-
738- logrus .Infof ("Filtering journal to exclude %s" , strings .Join (logMessages , " and " ))
739-
740713 for offset := 0 ; offset <= len (journalData )- 4 ; {
741714 size := readUint32 (journalData [offset :])
742715 if size == 0 {
0 commit comments