diff options
Diffstat (limited to 'lib/chef/file_content_management/content_base.rb')
-rw-r--r-- | lib/chef/file_content_management/content_base.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/file_content_management/content_base.rb b/lib/chef/file_content_management/content_base.rb index 6080e37180..d5593579b0 100644 --- a/lib/chef/file_content_management/content_base.rb +++ b/lib/chef/file_content_management/content_base.rb @@ -23,12 +23,14 @@ class Chef attr_reader :run_context attr_reader :new_resource attr_reader :current_resource + attr_reader :logger - def initialize(new_resource, current_resource, run_context) + def initialize(new_resource, current_resource, run_context, logger = Chef::Log.with_child) @new_resource = new_resource @current_resource = current_resource @run_context = run_context @tempfile_loaded = false + @logger = logger end def tempfile |