Skip to content

Commit e986d1d

Browse files
committed
Remove excess logging
1 parent d65296b commit e986d1d

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

go/store/nbs/journal_inspect.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)