Improve log message when we fail to retrieve the client cert pool (#13585)

This commit is contained in:
Zac Bergquist 2022-06-20 16:52:15 -06:00 committed by GitHub
parent 8f5382f40d
commit ca520999c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,7 +292,8 @@ func (t *TLSServer) GetConfigForClient(info *tls.ClientHelloInfo) (*tls.Config,
if clusterName, err := t.cfg.AccessPoint.GetClusterName(); err == nil {
ourClusterName = clusterName.GetClusterName()
}
t.log.Errorf("Failed to retrieve client pool. Client cluster %v, target cluster %v, error: %v.", clusterName, ourClusterName, trace.DebugReport(err))
t.log.Errorf("Failed to retrieve client pool for client %v, client cluster %v, target cluster %v, error: %v.",
info.Conn.RemoteAddr().String(), clusterName, ourClusterName, trace.DebugReport(err))
// this falls back to the default config
return nil, nil
}