Skip to content

Commit

Permalink
fix: add log (#6307)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Sep 27, 2022
1 parent 1da97b5 commit dfb0e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/repositories/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (s *Service) do(ctx context.Context, op sdk.Operation) error {
}
defer func() {
s.dao.unlock(ctx, r.ID())
log.Info(ctx, "%s protected for %d days", r.ID(), s.Cfg.RepositoriesRetention)
s.dao.store.Lock(cache.Key(lastAccessKey, r.ID()), 24*time.Hour*time.Duration(s.Cfg.RepositoriesRetention), -1, -1)
}()

Expand Down

0 comments on commit dfb0e98

Please sign in to comment.