[chef] Variable logging levels within a chef recipe


Chronological Thread 
  • From: M G < >
  • To: " " < >
  • Subject: [chef] Variable logging levels within a chef recipe
  • Date: Fri, 23 Jan 2015 12:09:01 -0800
  • Importance: Normal

HI

In the client.rb the log level is set to info

When running a recipe, it inherits the above log level

I have a recipe which does say three things , for example

package "component" 

file "somefile" do

end

service "component service"

When chef-client is copying the file from chef server to the node, it writes out the content of the file in the chef-client log.

I would like to suppress logging only for that part of the recipe from within the recipe.

Is it possible? Any pointers would be appreciated?

Regards

mg



Archive powered by MHonArc 2.6.16.

§