From e4e34c0f96887fe21b2ba880c3771faddeb0c1ad 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 41a87c828..b633de231 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 }