Skip to content

Commit

Permalink
fix error and log messages
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 14, 2024
1 parent b80b51e commit 2533267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/iac/rego/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s *Scanner) loadEmbedded() error {

loaded, err = LoadEmbeddedPolicies()
if err != nil {
return fmt.Errorf("failed to load embedded rego policies: %w", err)
return fmt.Errorf("failed to load embedded rego checks: %w", err)
}
s.embeddedChecks = loaded
s.logger.Debug("Embedded checks are loaded", log.Int("count", len(loaded)))
Expand Down
2 changes: 1 addition & 1 deletion pkg/iac/scanners/terraform/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (p *Parser) EvaluateAll(ctx context.Context) (terraform.Modules, cty.Value,
}

modules, fsMap := e.EvaluateAll(ctx)
p.logger.Debug("Finished parsing module", log.String("module", p.moduleName))
p.logger.Debug("Finished parsing module")
p.fsMap = fsMap
return modules, e.exportOutputs(), nil
}
Expand Down

0 comments on commit 2533267

Please sign in to comment.