mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Merge pull request #1973 from molecula/fb-1188-ttl-info
FB-1188 - TTL - Better TTL logging info
This commit is contained in:
commit
9e3734e9cc
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue