From 670a04cf303bba2cf9567018fd6c54dc133f47e6 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Wed, 5 Apr 2023 17:06:57 +0000 Subject: [PATCH] backport of commit de2bb8ce70d1153756b67609e4af3cab9f05d7eb --- vault/token_store_util_common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vault/token_store_util_common.go b/vault/token_store_util_common.go index a10bb83a854f..019c2b7e8401 100644 --- a/vault/token_store_util_common.go +++ b/vault/token_store_util_common.go @@ -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 } @@ -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 }