fix: more logging for sync extension (#3656)

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
Andrei Aaron
2025-12-16 00:03:24 +02:00
committed by GitHub
parent e069229744
commit ed40bfd689
5 changed files with 7 additions and 3 deletions
+2
View File
@@ -26,6 +26,8 @@ func EnableSyncExtension(config *config.Config, metaDB mTypes.MetaDB,
httpPort := config.GetHTTPPort()
if extensionsConfig.IsSyncEnabled() {
log.Info().Msg("sync extension is enabled")
onDemand := sync.NewOnDemand(log)
syncConfig := extensionsConfig.GetSyncConfig()
+2
View File
@@ -60,6 +60,8 @@ func (registry *RemoteRegistry) GetRepositories(ctx context.Context) ([]string,
continue
}
registry.log.Debug().Strs("repoList", repoList).Str("remote", host.Name).Msg("listed repositories in remote registry")
return repoList, nil
}
+1 -1
View File
@@ -141,7 +141,7 @@ func (gen *TaskGenerator) Next() (scheduler.Task, error) {
gen.resetWaitTime()
if repo == "" {
gen.log.Info().Str("component", "sync").Msg("finished syncing all repositories")
gen.log.Info().Str("component", "sync").Msg("finished generating tasks to sync repositories")
gen.done = true
return nil, nil //nolint:nilnil
+1 -1
View File
@@ -7869,7 +7869,7 @@ func pushBlob(url string, repoName string, buf []byte) godigest.Digest {
// this is waiting for generator to finish working, it doesn't mean sync has finished though.
func waitSyncFinish(logPath string) bool {
found, err := test.ReadLogFileAndSearchString(logPath,
"finished syncing all repos", 60*time.Second)
"finished generating tasks to sync repositories", 60*time.Second)
if err != nil {
panic(err)
}