diff options
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
| -rw-r--r-- | zenserver/upstream/upstreamcache.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp index 232ed3031..58c025b4f 100644 --- a/zenserver/upstream/upstreamcache.cpp +++ b/zenserver/upstream/upstreamcache.cpp @@ -111,8 +111,6 @@ namespace detail { return {.State = UpstreamEndpointState::kOk}; } - const AuthMgr::OpenIdAccessToken Token = m_AuthMgr.GetOpenIdAccessToken("Okta"); - CloudCacheSession Session(m_Client); const CloudCacheResult Result = Session.Authenticate(); @@ -1415,11 +1413,12 @@ private: if (Status.State == UpstreamEndpointState::kOk) { - ZEN_INFO("health check endpoint '{} - {}' OK", Info.Name, Info.Url); + ZEN_INFO("HEALTH - endpoint '{} - {}' Ok", Info.Name, Info.Url); } else { - ZEN_WARN("health check endpoint '{} - {}' FAILED, reason '{}'", Info.Name, Info.Url, Status.Reason); + const std::string Reason = Status.Reason.empty() ? "" : fmt::format(", reason '{}'", Status.Reason); + ZEN_WARN("HEALTH - endpoint '{} - {}' {} {}", Info.Name, Info.Url, ToString(Status.State), Reason); } } } |