summaryrefslogtreecommitdiff
path: root/lib/chef/resource/file
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-03-23 13:05:13 +0000
committerTim Smith <tsmith@chef.io>2018-03-26 10:34:39 -0700
commit97c1dd6f1cac6d97e85d05039cad8b28596141ba (patch)
treed8a97c0f7016986a2cc264aa50ae345638ed026c /lib/chef/resource/file
parent1b81f35e023bcdc87e410c641545e849298de5c3 (diff)
downloadchef-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/resource/file')
-rw-r--r--lib/chef/resource/file/verification.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/resource/file/verification.rb b/lib/chef/resource/file/verification.rb
index ed6fce2e5c..578e6066a2 100644
--- a/lib/chef/resource/file/verification.rb
+++ b/lib/chef/resource/file/verification.rb
@@ -80,6 +80,10 @@ class Chef
c
end
+ def logger
+ @parent_resource.logger
+ end
+
def initialize(parent_resource, command, opts, &block)
@command, @command_opts = command, opts
@block = block
@@ -87,7 +91,7 @@ class Chef
end
def verify(path, opts = {})
- Chef::Log.debug("Running verification[#{self}] on #{path}")
+ logger.trace("Running verification[#{self}] on #{path}")
if @block
verify_block(path, opts)
elsif @command.is_a?(Symbol)