From 537cb2c489222cec4757f3cfc3f26f41bdfad8c0 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 11 Oct 2019 15:50:57 -0700 Subject: [PATCH] Dont hard code trace level name --- pkg/urfave/network.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/urfave/network.go b/pkg/urfave/network.go index c15a438..d54015f 100644 --- a/pkg/urfave/network.go +++ b/pkg/urfave/network.go @@ -11,6 +11,7 @@ import ( "net/http" "time" + "github.com/sirupsen/logrus" "github.com/urfave/cli" ) @@ -65,7 +66,7 @@ func NetworkFromContext(ctx *cli.Context) Network { // Create the context context := context.Background() - if ctx.String(logLevelFlag) == "trace" { + if ctx.String(logLevelFlag) == logrus.TraceLevel.String() { context = traceHTTP(context) }