diff --git a/system/jlib/jsecrets.cpp b/system/jlib/jsecrets.cpp index 82a85e0311a..8340876594a 100644 --- a/system/jlib/jsecrets.cpp +++ b/system/jlib/jsecrets.cpp @@ -52,7 +52,6 @@ //#define TRACE_SECRETS #include -#include enum class CVaultKind { kv_v1, kv_v2 }; @@ -415,7 +414,7 @@ static void expandSecretKey(std::string & category, std::string & name, std::str //Represents an entry in the secret cache. Once created it is always used for the secret. using cache_timestamp = unsigned; -using cache_timestamp_diff = signed;//std::make_signed; +using cache_timestamp_diff = signed; class SecretCacheEntry : public CInterface { friend class SecretCache; @@ -1346,12 +1345,16 @@ class SecretRefreshThread : public Thread std::vector pending; while (!abort) { +#ifdef TRACE_SECRETS DBGLOG("Check for expired secrets..."); +#endif cache_timestamp now = msTick(); globalSecretCache.gatherPendingRefresh(pending, now + refreshLookaheadMs); for (auto secret : pending) { +#ifdef TRACE_SECRETS DBGLOG("Refreshing secret %s", secret->queryTraceName()); +#endif refreshSecret(secret, false); } pending.clear();