Merge pull request #1973 from molecula/fb-1188-ttl-info

FB-1188 - TTL - Better TTL logging info
This commit is contained in:
hphamMolecula 2022-03-11 12:17:12 -06:00 committed by GitHub
commit 9e3734e9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -844,6 +844,8 @@ func (s *Server) monitorResetTranslationSync() {
func (s *Server) monitorTtl() {
ctx := context.Background()
// Run TtlRemoval on server start
s.TtlRemoval(ctx)
ticker := time.NewTicker(s.ttlRemovalInterval)
for {
select {
@ -879,7 +881,7 @@ func (s *Server) TtlRemoval(ctx context.Context) {
if err != nil {
s.logger.Errorf("ttl delete view: %s", err)
}
s.logger.Infof("ttl deleted view: %s", view.name)
s.logger.Infof("ttl deleted - index: %s, field: %s, view: %s ", index.name, field.name, view.name)
}
}
}