Skip to content

Instantly share code, notes, and snippets.

@Kaelten
Created June 4, 2015 16:17
Show Gist options
  • Save Kaelten/d3a8a16ee89773896d44 to your computer and use it in GitHub Desktop.
Save Kaelten/d3a8a16ee89773896d44 to your computer and use it in GitHub Desktop.
I got incredibly tired of seeing the spam of guard resource executions in chef converges, so I changed them to debug statements
class Chef
class Log
def self.info(msg=nil, &block)
if msg && msg.include?('Guard resource') && msg.include?('ran successfully')
debug msg
else
super
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment