summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-04-23 13:20:59 -0700
committerGitHub <noreply@github.com>2021-04-23 13:20:59 -0700
commita9892763be0c82a28169eaf6478d080989681027 (patch)
tree2371dfacda5ce49151c66f3bd2beb1fa8c5c9475
parentf6da5e72fb1caef4d33a2888766f435d155982a6 (diff)
parentf7e5ba559ab15de087e72d6bf149232b56f195df (diff)
downloadchef-a9892763be0c82a28169eaf6478d080989681027.tar.gz
Merge pull request #11443 from chef/mp/add-compliance-phase-run-markers
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/compliance/runner.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb
index 6bc134d08e..3f754e8259 100644
--- a/lib/chef/compliance/runner.rb
+++ b/lib/chef/compliance/runner.rb
@@ -57,7 +57,7 @@ class Chef
def run_completed(_node, _run_status)
return unless enabled?
- logger.info("#{self.class}##{__method__}: enabling Compliance Phase")
+ logger.debug("#{self.class}##{__method__}: enabling Compliance Phase")
report
end
@@ -68,7 +68,7 @@ class Chef
# because we're still not configured correctly.
return unless enabled? && @validation_passed
- logger.info("#{self.class}##{__method__}: enabling Compliance Phase")
+ logger.debug("#{self.class}##{__method__}: enabling Compliance Phase")
report
end
@@ -94,7 +94,9 @@ class Chef
end
end
- def report(report = generate_report)
+ def report(report = nil)
+ logger.info "Starting Chef Infra Compliance Phase"
+ report ||= generate_report
# This is invoked at report-time instead of with the normal validations at node loaded,
# because we want to ensure that it is visible in the output - and not lost in back-scroll.
warn_for_deprecated_config_values!
@@ -108,6 +110,7 @@ class Chef
logger.info "Reporting to #{reporter_type}"
@reporters[reporter_type].send_report(report)
end
+ logger.info "Chef Infra Compliance Phase Complete"
end
def inspec_opts