Merge pull request #533 from strukturag/warn-missing-backends

Log warning if no (static) backends have been configured.
This commit is contained in:
Joachim Bauch 2023-08-08 10:41:25 +02:00 committed by GitHub
commit 0591be1bad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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{