tokend: add some logging about token issuance

This commit is contained in:
Luke Granger-Brown 2023-03-12 15:21:38 +00:00
parent af02ed9958
commit fa17ca41c9

View file

@ -33,6 +33,11 @@ func wrapToken(s *TokenSecret) ttledSecret {
ttlBuffer = 2 * time.Minute ttlBuffer = 2 * time.Minute
} }
// DEBUG: debugging some annoying renewal(?) issues with tokend
accessor, _ := s.TokenAccessor()
ttl, _ := s.TokenTTL()
log.Infof("wrapping token accessor %v with token TTL %v", accessor, ttl)
return ttledSecret{ return ttledSecret{
TokenSecret: s, TokenSecret: s,