Skip to content

Commit

Permalink
Add extra ssct gen counter debug logs (hashicorp#19980)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Apr 5, 2023
1 parent 44cf5e9 commit de2bb8c
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 @@ -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
}
Expand All @@ -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
}

0 comments on commit de2bb8c

Please sign in to comment.