From c51366c0907c59278b949d3e5acccd29c3938c1d Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 6 Mar 2021 23:52:50 -0500 Subject: [PATCH] Additional messages for debugging --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 5ec8724..591271d 100644 --- a/main.go +++ b/main.go @@ -52,6 +52,8 @@ func main() { c.DefineVariable("extension", "") c.DefineVariable("filetype", "") + log.Info("Loading rules") + loadRules(c) rules, err := c.GetRules() @@ -144,6 +146,8 @@ func loadRules(c *yara.Compiler) { rulePaths := strings.Split(viper.GetString("rules"), ",") for _, p := range rulePaths { + log.WithField("package", p).Info("Loading rules from package") + instance, err := packageurl.FromString(p) if err != nil {