From 3a2b2b24363e04d72553c08818b96ce51e7dfd21 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 10 Oct 2023 13:32:38 +0200 Subject: suppress no-op auth debug logging --- src/zenhttp/auth/authmgr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/zenhttp/auth/authmgr.cpp') diff --git a/src/zenhttp/auth/authmgr.cpp b/src/zenhttp/auth/authmgr.cpp index 88f7776e0..f75e4edb2 100644 --- a/src/zenhttp/auth/authmgr.cpp +++ b/src/zenhttp/auth/authmgr.cpp @@ -411,7 +411,12 @@ private: } } - ZEN_DEBUG("refreshing '{}' OpenID token(s)", ExpiredTokens.size()); + if (ExpiredTokens.empty()) + { + continue; + } + + ZEN_DEBUG("refreshing {} OpenID token(s)", ExpiredTokens.size()); for (const auto& Kv : ExpiredTokens) { -- cgit v1.2.3