Additional messages for debugging
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
27c8c1548a
commit
c51366c090
4
main.go
4
main.go
|
@ -52,6 +52,8 @@ func main() {
|
||||||
c.DefineVariable("extension", "")
|
c.DefineVariable("extension", "")
|
||||||
c.DefineVariable("filetype", "")
|
c.DefineVariable("filetype", "")
|
||||||
|
|
||||||
|
log.Info("Loading rules")
|
||||||
|
|
||||||
loadRules(c)
|
loadRules(c)
|
||||||
|
|
||||||
rules, err := c.GetRules()
|
rules, err := c.GetRules()
|
||||||
|
@ -144,6 +146,8 @@ func loadRules(c *yara.Compiler) {
|
||||||
rulePaths := strings.Split(viper.GetString("rules"), ",")
|
rulePaths := strings.Split(viper.GetString("rules"), ",")
|
||||||
|
|
||||||
for _, p := range rulePaths {
|
for _, p := range rulePaths {
|
||||||
|
log.WithField("package", p).Info("Loading rules from package")
|
||||||
|
|
||||||
instance, err := packageurl.FromString(p)
|
instance, err := packageurl.FromString(p)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue