summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2017-02-09 09:12:37 -0600
committerTom Duffield <tom@chef.io>2017-02-09 09:12:37 -0600
commit6c8e8f2349178a88f0d87378db0324ae585ca7f9 (patch)
tree11be55d9f30a980ae3715c5fb9b010d5d2a71481
parent5fbe0dae6447b19201843abe5625211893cb7bcb (diff)
downloadchef-tduffield/supress-hashie-logging.tar.gz
Suppress hashie logging (to address Hashie bug)tduffield/supress-hashie-logging
Signed-off-by: Tom Duffield <tom@chef.io>
-rw-r--r--lib/chef.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef.rb b/lib/chef.rb
index 3e161dc365..b81524a56d 100644
--- a/lib/chef.rb
+++ b/lib/chef.rb
@@ -16,6 +16,16 @@
# limitations under the License.
#
+# XXX: work around logger spam from hashie
+# https://github.com/intridea/hashie/issues/394
+begin
+ require "hashie"
+ require "hashie/logger"
+ Hashie.logger = Logger.new(nil)
+rescue LoadError
+ # intentionally left blank
+end
+
require "chef/version"
require "chef/nil_argument"
require "chef/mash"