diff --git a/services/efs.go b/services/efs.go index b7c128253..c23ba6e9f 100644 --- a/services/efs.go +++ b/services/efs.go @@ -69,6 +69,7 @@ func (s *ExportFailoverService) Start(_ *utils.SyncedChan, registry *servmanager s.srv, _ = engine.NewServiceWithPing(s.efS, utils.EfSv1, utils.V1Prfx) cl.RpcRegister(s.srv) cms.AddInternalConn(utils.EFs, s.srv) + efs.InitFailedPostCache(s.cfg.EFsCfg().FailedPostsTTL, s.cfg.EFsCfg().FailedPostsStaticTTL) return } diff --git a/services/logger.go b/services/logger.go index 05e252c6f..0e937a961 100644 --- a/services/logger.go +++ b/services/logger.go @@ -21,7 +21,6 @@ package services import ( "github.com/cgrates/birpc/context" "github.com/cgrates/cgrates/config" - "github.com/cgrates/cgrates/efs" "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/servmanager" "github.com/cgrates/cgrates/utils" @@ -59,7 +58,6 @@ func (s *LoggerService) Start(_ *utils.SyncedChan, registry *servmanager.Service } cm := cms.(*ConnManagerService).ConnManager() utils.Logger = engine.NewExportLogger(context.TODO(), s.cfg.GeneralCfg().DefaultTenant, cm, s.cfg) - efs.InitFailedPostCache(s.cfg.EFsCfg().FailedPostsTTL, s.cfg.EFsCfg().FailedPostsStaticTTL) return nil }