diff options
Diffstat (limited to 'lib/chef/provider/windows_env.rb')
-rw-r--r-- | lib/chef/provider/windows_env.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/provider/windows_env.rb b/lib/chef/provider/windows_env.rb index 085783d750..4e7fa34216 100644 --- a/lib/chef/provider/windows_env.rb +++ b/lib/chef/provider/windows_env.rb @@ -46,7 +46,7 @@ class Chef current_resource.value(env_value(new_resource.key_name)) else @key_exists = false - Chef::Log.debug("#{new_resource} key does not exist") + logger.trace("#{new_resource} key does not exist") end current_resource @@ -81,12 +81,12 @@ class Chef if @key_exists if requires_modify_or_create? modify_env - Chef::Log.info("#{new_resource} altered") + logger.info("#{new_resource} altered") new_resource.updated_by_last_action(true) end else create_env - Chef::Log.info("#{new_resource} created") + logger.info("#{new_resource} created") new_resource.updated_by_last_action(true) end end @@ -101,7 +101,7 @@ class Chef return false unless new_resource.delim #no delim: delete the key needs_delete = new_values.any? { |v| current_values.include?(v) } if !needs_delete - Chef::Log.debug("#{new_resource} element '#{new_resource.value}' does not exist") + logger.trace("#{new_resource} element '#{new_resource.value}' does not exist") return true #do not delete the key else new_value = @@ -114,7 +114,7 @@ class Chef else old_value = new_resource.value(new_value) create_env - Chef::Log.debug("#{new_resource} deleted #{old_value} element") + logger.trace("#{new_resource} deleted #{old_value} element") new_resource.updated_by_last_action(true) return true #we removed the element and updated; do not delete the key end @@ -124,7 +124,7 @@ class Chef def action_delete if ( ENV[new_resource.key_name] || @key_exists ) && !delete_element delete_env - Chef::Log.info("#{new_resource} deleted") + logger.info("#{new_resource} deleted") new_resource.updated_by_last_action(true) end end @@ -133,7 +133,7 @@ class Chef if @key_exists if requires_modify_or_create? modify_env - Chef::Log.info("#{new_resource} modified") + logger.info("#{new_resource} modified") new_resource.updated_by_last_action(true) end else |