aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/auth/authmgr.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-10 13:32:38 +0200
committerStefan Boberg <[email protected]>2023-10-10 13:32:38 +0200
commit3a2b2b24363e04d72553c08818b96ce51e7dfd21 (patch)
tree7730c7ca5aa2f9736e7dcdc886029c358e8dc2db /src/zenhttp/auth/authmgr.cpp
parentexperimental pluggable transport support (#436) (diff)
downloadzen-3a2b2b24363e04d72553c08818b96ce51e7dfd21.tar.xz
zen-3a2b2b24363e04d72553c08818b96ce51e7dfd21.zip
suppress no-op auth debug logging
Diffstat (limited to 'src/zenhttp/auth/authmgr.cpp')
-rw-r--r--src/zenhttp/auth/authmgr.cpp7
1 files changed, 6 insertions, 1 deletions
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)
{