[chef] Re: Re: Re: Re: Re: Using the 'log' resource vs Chef::Log.


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Using the 'log' resource vs Chef::Log.<loglevel>
  • Date: Mon, 8 Jul 2013 10:22:34 -0700


On Monday, July 8, 2013 at 9:43 AM, Mike wrote:

Thanks for the awesome answers - this is very helpful.

How are log resources affected by resource cloning (CHEF-3694) ?

All resource types are affected by resource cloning in the same way. If a
resource's type+name match a previously defined resource's type+name, it
will be created from a clone instead of created from scratch.

Will a log resource with a level of debug be created/updated when the
Chef run isn't in debug mode, and not be displayed? Or is the resource
evaluated at compile phase, and determined "we;re not running in debug
mode, don't add this to the collection"?
The log resource's implementation is about as simple as it gets:

https://github.com/opscode/chef/blob/master/lib/chef/provider/log.rb

What you're describing sounds like it could be a useful improvement.
 

-M

-- 
Daniel DeLeo
 



Archive powered by MHonArc 2.6.16.

§