Log collection updates (#2346)
## Description Adds a log message to collection updates to indicate how many items we have streamed into the repository ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #2329 ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
4ab5040569
commit
2873befe53
@ -390,6 +390,11 @@ func CollectionProgress(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
counted++
|
counted++
|
||||||
|
|
||||||
|
// Log every 1000 items that are processed
|
||||||
|
if counted%1000 == 0 {
|
||||||
|
log.Infow("uploading", "count", counted)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}(ch)
|
}(ch)
|
||||||
|
|
||||||
@ -435,6 +440,11 @@ func CollectionProgress(
|
|||||||
|
|
||||||
counted++
|
counted++
|
||||||
|
|
||||||
|
// Log every 1000 items that are processed
|
||||||
|
if counted%1000 == 0 {
|
||||||
|
log.Infow("uploading", "count", counted)
|
||||||
|
}
|
||||||
|
|
||||||
bar.Increment()
|
bar.Increment()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user