diff options
author | Isa Farnik <isa@chef.io> | 2015-12-29 00:02:55 -0800 |
---|---|---|
committer | Isa Farnik <isa@chef.io> | 2016-01-12 12:51:29 -0800 |
commit | f822e4d06af4ddd89c712f6e5d95065682e97489 (patch) | |
tree | 20e37c0d26d68089f98afca7c829302907df2f1e | |
parent | 29f39ec8045e159aebb15d583314d8d3d746e345 (diff) | |
download | chef-f822e4d06af4ddd89c712f6e5d95065682e97489.tar.gz |
debug log messages upon reloaded resourcesif/warn-on-reload-resource
tests for debug messages when reloading resources
-rw-r--r-- | lib/chef/provider/lwrp_base.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/lwrp_base.rb | 2 | ||||
-rw-r--r-- | spec/unit/lwrp_spec.rb | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/lwrp_base.rb b/lib/chef/provider/lwrp_base.rb index 9c7cd15bbf..126184a51a 100644 --- a/lib/chef/provider/lwrp_base.rb +++ b/lib/chef/provider/lwrp_base.rb @@ -53,7 +53,7 @@ class Chef def build_from_file(cookbook_name, filename, run_context) if LWRPBase.loaded_lwrps[filename] - Chef::Log.info("LWRP provider #{filename} from cookbook #{cookbook_name} has already been loaded! Skipping the reload.") + Chef::Log.debug("LWRP provider #{filename} from cookbook #{cookbook_name} has already been loaded! Skipping the reload.") return loaded_lwrps[filename] end diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index c743f12957..e4ef918164 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -45,7 +45,7 @@ class Chef def build_from_file(cookbook_name, filename, run_context) if LWRPBase.loaded_lwrps[filename] - Chef::Log.info("Custom resource #{filename} from cookbook #{cookbook_name} has already been loaded! Skipping the reload.") + Chef::Log.debug("Custom resource #{filename} from cookbook #{cookbook_name} has already been loaded! Skipping the reload.") return loaded_lwrps[filename] end diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index 7f6d315bbb..13d9f6acc7 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -84,7 +84,7 @@ describe "LWRP" do end Dir[File.expand_path( "lwrp/resources/*", CHEF_SPEC_DATA)].each do |file| - expect(Chef::Log).to receive(:info).with(/Skipping/) + expect(Chef::Log).to receive(:debug).with(/Skipping/) Chef::Resource::LWRPBase.build_from_file("lwrp", file, nil) end end @@ -95,7 +95,7 @@ describe "LWRP" do end Dir[File.expand_path( "lwrp/providers/*", CHEF_SPEC_DATA)].each do |file| - expect(Chef::Log).to receive(:info).with(/Skipping/) + expect(Chef::Log).to receive(:debug).with(/Skipping/) Chef::Provider::LWRPBase.build_from_file("lwrp", file, nil) end end |