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/provider/directory.rb | |
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/provider/directory.rb')
-rw-r--r-- | lib/chef/provider/directory.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb index a176230bba..3e816d5a06 100644 --- a/lib/chef/provider/directory.rb +++ b/lib/chef/provider/directory.rb @@ -129,7 +129,7 @@ class Chef else ::Dir.mkdir(new_resource.path) end - Chef::Log.info("#{new_resource} created directory #{new_resource.path}") + logger.info("#{new_resource} created directory #{new_resource.path}") end end do_acl_changes @@ -144,10 +144,10 @@ class Chef # we don't use rm_rf here because it masks all errors, including # IO errors or permission errors that would prvent the deletion FileUtils.rm_r(new_resource.path) - Chef::Log.info("#{new_resource} deleted #{new_resource.path} recursively") + logger.info("#{new_resource} deleted #{new_resource.path} recursively") else ::Dir.delete(new_resource.path) - Chef::Log.info("#{new_resource} deleted #{new_resource.path}") + logger.info("#{new_resource} deleted #{new_resource.path}") end end end |