summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2021-04-23 13:13:30 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2021-04-23 13:13:30 -0400
commit76e535caffadaaf9718187f31642d9349eadcc89 (patch)
tree8e26ef2cf462478c1d51a168cd440a7e476ea4a7
parentb6820f343a9b1874e8e1f623493e99823bbd5723 (diff)
downloadchef-mp/add-compliance-phase-run-markers.tar.gz
Add start/end of compliance phase loggingmp/add-compliance-phase-run-markers
This closes #11107. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
-rw-r--r--lib/chef/compliance/runner.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb
index 6bc134d08e..ad9a696e58 100644
--- a/lib/chef/compliance/runner.rb
+++ b/lib/chef/compliance/runner.rb
@@ -153,6 +153,7 @@ class Chef
end
def generate_report(opts: inspec_opts, profiles: inspec_profiles)
+ logger.info "Starting Chef Infra Compliance Phase"
load_fetchers!
logger.debug "Options are set to: #{opts}"
@@ -174,6 +175,8 @@ class Chef
failed_report("Cannot fetch all profiles: #{profiles}. Please make sure you're authenticated and the server is reachable. #{e.message}")
rescue => e
failed_report(e.message)
+ ensure
+ logger.info "Chef Infra Compliance Phase Complete"
end
# In case InSpec raises a runtime exception without providing a valid report,