Skip to content

Commit dbcdefd

Browse files
committed
toggle logic to log everything
1 parent c7f339f commit dbcdefd

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

pkg/proc/interaction.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,13 @@ func ListFilesToCopy(prefix string, port uint64, cfg config.Storage, src storage
910910
for i := range len(objectMetas) {
911911
path := strings.TrimPrefix(objectMetas[i].Path, cfg.StoragePrefix)
912912
reworked := path
913-
if config.InstanceConfig().StorageCnf.StorageOptimizeCopy {
914-
if _, ok := vi[reworked]; !ok {
915-
ylogger.Zero.Info().Int("index", i).Str("object path", objectMetas[i].Path).Msg("not in virtual index, skipping...")
916-
skipped = append(skipped, objectMetas[i])
913+
if _, ok := vi[reworked]; !ok {
914+
skipCopy := config.InstanceConfig().StorageCnf.StorageOptimizeCopy
915+
skipped = append(skipped, objectMetas[i])
916+
917+
ylogger.Zero.Info().Int("index", i).Str("reworked name", reworked).Str("object path", objectMetas[i].Path).Bool("skipping", skipCopy).Msg("not in virtual index")
918+
919+
if skipCopy {
917920
continue
918921
}
919922
}

0 commit comments

Comments
 (0)