diff options
author | danielsdeleo <dan@getchef.com> | 2014-06-11 17:39:20 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-06-11 17:39:20 -0700 |
commit | 48d031610912d18b96d43f4ce40b7592083c7a66 (patch) | |
tree | 20e9b01c0e328237e395f2ac0f5edafd7c543010 | |
parent | 739407f0cc4331edcaa232dc6e5fe16a5cca3217 (diff) | |
download | chef-48d031610912d18b96d43f4ce40b7592083c7a66.tar.gz |
Avoid accidentally configuring logger for debug during tests
-rw-r--r-- | spec/support/chef_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb index 542bee24c1..f31355f50a 100644 --- a/spec/support/chef_helpers.rb +++ b/spec/support/chef_helpers.rb @@ -20,10 +20,10 @@ Chef::Config[:log_level] = :fatal Chef::Config[:persistent_queue] = false Chef::Config[:file_backup_path] = CHEF_SPEC_BACKUP_PATH +Chef::Log.init(StringIO.new) Chef::Log.level(Chef::Config.log_level) Chef::Config.solo(false) -Chef::Log.logger = Logger.new(StringIO.new) def sha256_checksum(path) Digest::SHA256.hexdigest(File.read(path)) |