Skip to content

Commit e0177fe

Browse files
committed
Add debug info for filesum
1 parent 6dd579c commit e0177fe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/walker/walker.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ func UseCSVFile(csvPath string, filesChan chan<- SrcDest) {
9898
log.Debugf("found empty record on line %v", i+1)
9999
continue
100100
}
101-
if len(rec[0]) == 0 && len(rec[1]) == 0 {
102-
log.Errorf("found empty record on line %v", i+1)
103-
continue
104-
}
105101

106102
filePath, err := filepath.Abs(rec[0])
107103
if err != nil {
@@ -136,5 +132,6 @@ func getSizeAndSum(filePath string) (string, uint64, error) {
136132
if _, err := io.CopyBuffer(h, f, buf); err != nil {
137133
return "", 0, fmt.Errorf("can't calculate sum for %s: %w", filePath, err)
138134
}
135+
log.Debugf("%s size=%d sum256=%s", filePath, info.Size(), fmt.Sprintf("%x", h.Sum(nil)))
139136
return fmt.Sprintf("%x", h.Sum(nil)), uint64(info.Size()), nil
140137
}

0 commit comments

Comments
 (0)