From fa17ca41c90152888c008d7753e8bbff60eb976e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 12 Mar 2023 15:21:38 +0000 Subject: [PATCH] tokend: add some logging about token issuance --- go/tokend/tokencache.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/tokend/tokencache.go b/go/tokend/tokencache.go index 7cf0254225..8046c396f7 100644 --- a/go/tokend/tokencache.go +++ b/go/tokend/tokencache.go @@ -33,6 +33,11 @@ func wrapToken(s *TokenSecret) ttledSecret { 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{ TokenSecret: s,