From 17e25bbe6e0609d875a53ceb49005cb14b5b3196 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Tue, 8 Aug 2023 10:31:27 +0200 Subject: [PATCH] Log warning if no (static) backends have been configured. --- backend_storage_static.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend_storage_static.go b/backend_storage_static.go index 144f039..84f078c 100644 --- a/backend_storage_static.go +++ b/backend_storage_static.go @@ -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{