From b41200b85434acdb07116745297483956053c9aa Mon Sep 17 00:00:00 2001 From: Caio Ronchi <142912765+ronchi-oss@users.noreply.github.com> Date: Thu, 13 Feb 2025 12:40:12 +0100 Subject: [PATCH] LIQUID_DEBUG to enable verbose logging --- cmd/andromeda-liquid-server/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/andromeda-liquid-server/main.go b/cmd/andromeda-liquid-server/main.go index f69d60c3..1e33dd4e 100644 --- a/cmd/andromeda-liquid-server/main.go +++ b/cmd/andromeda-liquid-server/main.go @@ -14,6 +14,7 @@ import ( "github.com/sapcc/go-api-declarations/liquid" "github.com/sapcc/go-bits/httpext" "github.com/sapcc/go-bits/liquidapi" + "github.com/sapcc/go-bits/logg" "github.com/sapcc/go-bits/must" "github.com/urfave/cli/v2" @@ -166,8 +167,14 @@ func main() { Usage: "Port to listen", Value: 8080, }, + &cli.BoolFlag{ + Name: "liquid_debug", + Usage: "Enable verbose logging for Liquid HTTP handling", + EnvVars: []string{"LIQUID_DEBUG"}, + }, }, Action: func(c *cli.Context) error { + logg.ShowDebug = c.Bool("liquid_debug") ctx := httpext.ContextWithSIGINT(c.Context, 10*time.Second) host := c.String("host") port := c.Int("port")