Skip to content

Commit

Permalink
chore(cleanup): only log skip message when method enabled (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac authored Feb 22, 2023
1 parent ebb3f84 commit bd537b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cleanup/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func (s *AuthenticationService) Run(ctx context.Context) {
for _, info := range s.config.Methods.AllMethods() {
logger := s.logger.With(zap.Stringer("method", info.Method))
if info.Cleanup == nil {
logger.Debug("cleanup for auth method not defined (skipping)")
if info.Enabled {
logger.Debug("cleanup for auth method not defined (skipping)")
}

continue
}

Expand Down

0 comments on commit bd537b8

Please sign in to comment.