Skip to content

Commit

Permalink
backport of commit de2bb8c (#19996)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
  • Loading branch information
1 parent 6f2761e commit 4b0296b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vault/token_store_util_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func (ts *TokenStore) loadSSCTokensGenerationCounter(ctx context.Context) error
if err != nil {
return fmt.Errorf("malformed token generation counter found in storage: err %w", err)
}

ts.logger.Debug("loaded ssct generation counter", "generation", sscTokensGenerationCounter.Counter)
ts.sscTokensGenerationCounter = sscTokensGenerationCounter
return nil
}
Expand All @@ -58,5 +60,7 @@ func (ts *TokenStore) UpdateSSCTokensGenerationCounter(ctx context.Context) erro
if err != nil {
return err
}

ts.logger.Debug("updated ssct generation counter", "generation", ts.sscTokensGenerationCounter.Counter)
return nil
}

0 comments on commit 4b0296b

Please sign in to comment.