internal: make error message less confusing

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-01-25 15:45:21 +01:00
parent 63b3434b6f
commit 96ae68cf09
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (ps *ProxyServer) TimerFlowCacheExpiry() {}
func (ps *ProxyServer) GetCertificate(serverName string) *tls.Certificate { func (ps *ProxyServer) GetCertificate(serverName string) *tls.Certificate {
app, ok := ps.apps[serverName] app, ok := ps.apps[serverName]
if !ok { if !ok {
ps.log.WithField("server-name", serverName).Debug("app does not exist") ps.log.WithField("server-name", serverName).Debug("failed to get certificate for ServerName")
return nil return nil
} }
if app.Cert == nil { if app.Cert == nil {