Created
June 4, 2015 16:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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