From bc608863cf8bb783221134e2badf3fa5e11dae66 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 11 Nov 2023 18:02:04 +1000 Subject: [PATCH] print a warning if resourced is disabled --- resource/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resource/main.go b/resource/main.go index fc910a1..a63adde 100644 --- a/resource/main.go +++ b/resource/main.go @@ -86,6 +86,10 @@ func main() { ProxyCacheMinSize = int(cache_min) conf.Validate() + + if ! conf.ResourceD.Enabled { + fmt.Println("\x1b[33m[warn] resourceD is disabled. No resources will be served\x1b[0m") + } app := fiber.New(fiber.Config { Prefork: true,