diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2021-04-23 13:13:30 -0400 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2021-04-23 13:13:30 -0400 |
commit | 76e535caffadaaf9718187f31642d9349eadcc89 (patch) | |
tree | 8e26ef2cf462478c1d51a168cd440a7e476ea4a7 | |
parent | b6820f343a9b1874e8e1f623493e99823bbd5723 (diff) | |
download | chef-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.rb | 3 |
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, |