mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
Remove forking logger (#825)
- no longer needed, the race conditions were fixed Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -614,9 +614,6 @@ func Run(ctx context.Context, cfg Config,
|
||||
|
||||
ticker := time.NewTicker(regCfg.PollInterval)
|
||||
|
||||
// fork a new zerolog child to avoid data race
|
||||
tlogger := log.Logger{Logger: logger.Logger}
|
||||
|
||||
retryOptions := &retry.RetryOptions{}
|
||||
|
||||
if regCfg.MaxRetries != nil {
|
||||
@@ -658,7 +655,7 @@ func Run(ctx context.Context, cfg Config,
|
||||
continue
|
||||
}
|
||||
}
|
||||
}(ctx, regCfg, tlogger)
|
||||
}(ctx, regCfg, logger)
|
||||
}
|
||||
|
||||
logger.Info().Msg("finished setting up sync")
|
||||
|
||||
Reference in New Issue
Block a user