fix: improve logging in routines

This commit is contained in:
Stavros
2026-05-08 17:43:20 +03:00
parent 0958c3b864
commit b73a9db061
8 changed files with 21 additions and 14 deletions
+2 -2
View File
@@ -756,14 +756,14 @@ func (service *OIDCService) DeleteOldSession(ctx context.Context, sub string) er
// Cleanup routine - Resource heavy due to the linked tables
func (service *OIDCService) cleanupRoutine() {
service.log.App.Debug().Msg("Starting OIDC cleanup routine")
ticker := time.NewTicker(time.Duration(30) * time.Minute)
defer ticker.Stop()
for {
select {
case <-ticker.C:
service.log.App.Debug().Msg("Starting OIDC cleanup routine")
service.log.App.Debug().Msg("Performing OIDC cleanup routine")
currentTime := time.Now().Unix()