diff options
-rw-r--r-- | lib/chef/log.rb | 4 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/log.rb b/lib/chef/log.rb index 44bf20757b..8cf2fba9bd 100644 --- a/lib/chef/log.rb +++ b/lib/chef/log.rb @@ -28,13 +28,13 @@ class Chef class Log extend Mixlib::Log - def self.use_default_settings! + def self.setup! init(MonoLogger.new(STDOUT)) nil end # Force initialization of the primary log device (@logger) - use_default_settings! + setup! class Formatter def self.show_time=(*args) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cc92c61543..e6d1bcc3ce 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -241,7 +241,7 @@ RSpec.configure do |config| Chef::Config.reset - Chef::Log.use_default_settings! + Chef::Log.setup! # By default, treat deprecation warnings as errors in tests. Chef::Config.treat_deprecation_warnings_as_errors(true) |