Log warning if no (static) backends have been configured.

This commit is contained in:
Joachim Bauch 2023-08-08 10:31:27 +02:00
parent f514afad99
commit 17e25bbe6e
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -115,6 +115,10 @@ func NewBackendStorageStatic(config *goconf.ConfigFile) (BackendStorage, error)
}
}
if numBackends == 0 {
log.Printf("WARNING: No backends configured, client connections will not be possible.")
}
statsBackendsCurrent.Add(float64(numBackends))
return &backendStorageStatic{
backendStorageCommon: backendStorageCommon{