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 {