From de2bb8ce70d1153756b67609e4af3cab9f05d7eb Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Wed, 5 Apr 2023 13:06:57 -0400 Subject: [PATCH] Add extra ssct gen counter debug logs (#19980) --- 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 41a87c8281cb..b633de231cf5 100644 --- a/vault/token_store_util_common.go +++ b/vault/token_store_util_common.go @@ -36,6 +36,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 } @@ -61,5 +63,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 }