From 61f66b94374c6dfb417973817d7a4165ff0c66e8 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 7 Mar 2021 00:07:06 -0500 Subject: [PATCH] Add debug setting --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index c23e4c4..50949c9 100644 --- a/main.go +++ b/main.go @@ -42,6 +42,10 @@ func main() { Timeout: 15 * time.Second, } + if viper.GetBool("debug") { + log.SetLevel(log.DebugLevel) + } + c, err := yara.NewCompiler() if err != nil {