Add debug setting
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2021-03-07 00:07:06 -05:00
parent 018a86232d
commit 61f66b9437
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ func main() {
Timeout: 15 * time.Second, Timeout: 15 * time.Second,
} }
if viper.GetBool("debug") {
log.SetLevel(log.DebugLevel)
}
c, err := yara.NewCompiler() c, err := yara.NewCompiler()
if err != nil { if err != nil {