diff options
author | Thom May <thom@chef.io> | 2018-03-23 13:05:13 +0000 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-26 10:34:39 -0700 |
commit | 97c1dd6f1cac6d97e85d05039cad8b28596141ba (patch) | |
tree | d8a97c0f7016986a2cc264aa50ae345638ed026c /lib/chef/util/dsc | |
parent | 1b81f35e023bcdc87e410c641545e849298de5c3 (diff) | |
download | chef-97c1dd6f1cac6d97e85d05039cad8b28596141ba.tar.gz |
mechanical conversion of most debug log statements to trace
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/util/dsc')
-rw-r--r-- | lib/chef/util/dsc/configuration_generator.rb | 2 | ||||
-rw-r--r-- | lib/chef/util/dsc/lcm_output_parser.rb | 2 | ||||
-rw-r--r-- | lib/chef/util/dsc/local_configuration_manager.rb | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/util/dsc/configuration_generator.rb b/lib/chef/util/dsc/configuration_generator.rb index 8b492d483a..3e9475bac2 100644 --- a/lib/chef/util/dsc/configuration_generator.rb +++ b/lib/chef/util/dsc/configuration_generator.rb @@ -26,7 +26,7 @@ class Chef::Util::DSC end def configuration_document_from_script_code(code, configuration_flags, imports, shellout_flags) - Chef::Log.debug("DSC: DSC code:\n '#{code}'") + Chef::Log.trace("DSC: DSC code:\n '#{code}'") generated_script_path = write_document_generation_script(code, "chef_dsc", imports) begin configuration_document_from_script_path(generated_script_path, "chef_dsc", configuration_flags, shellout_flags) diff --git a/lib/chef/util/dsc/lcm_output_parser.rb b/lib/chef/util/dsc/lcm_output_parser.rb index f19f637b6d..658d5c7d8f 100644 --- a/lib/chef/util/dsc/lcm_output_parser.rb +++ b/lib/chef/util/dsc/lcm_output_parser.rb @@ -130,7 +130,7 @@ class Chef end current_resource = { :name => info } else - Chef::Log.debug("Ignoring op_action #{op_action}: Read line #{line}") + Chef::Log.trace("Ignoring op_action #{op_action}: Read line #{line}") end when :end # Make sure we log the last line diff --git a/lib/chef/util/dsc/local_configuration_manager.rb b/lib/chef/util/dsc/local_configuration_manager.rb index 07109f7f92..81aaa098c0 100644 --- a/lib/chef/util/dsc/local_configuration_manager.rb +++ b/lib/chef/util/dsc/local_configuration_manager.rb @@ -46,7 +46,7 @@ class Chef::Util::DSC private def run_configuration_cmdlet(configuration_document, apply_configuration, shellout_flags) - Chef::Log.debug("DSC: Calling DSC Local Config Manager to #{apply_configuration ? "set" : "test"} configuration document.") + Chef::Log.trace("DSC: Calling DSC Local Config Manager to #{apply_configuration ? "set" : "test"} configuration document.") start_operation_timing status = nil @@ -63,10 +63,10 @@ class Chef::Util::DSC end_operation_timing remove_configuration_document if last_operation_execution_time_seconds - Chef::Log.debug("DSC: DSC operation completed in #{last_operation_execution_time_seconds} seconds.") + Chef::Log.trace("DSC: DSC operation completed in #{last_operation_execution_time_seconds} seconds.") end end - Chef::Log.debug("DSC: Completed call to DSC Local Config Manager") + Chef::Log.trace("DSC: Completed call to DSC Local Config Manager") status end @@ -110,7 +110,7 @@ class Chef::Util::DSC end def configuration_update_required?(command_output) - Chef::Log.debug("DSC: DSC returned the following '-whatif' output from test operation:\n#{command_output}") + Chef::Log.trace("DSC: DSC returned the following '-whatif' output from test operation:\n#{command_output}") begin Parser.parse(command_output, ps_version_gte_5?) rescue Chef::Exceptions::LCMParser => e |