Skip to content

Commit

Permalink
LIQUID_DEBUG to enable verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ronchi-oss committed Feb 13, 2025
1 parent d11ee11 commit 2640d24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/andromeda-liquid-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2640d24

Please sign in to comment.