summaryrefslogtreecommitdiff
path: root/spec/unit/system_spec.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-01-20 13:11:04 +0000
committerThom May <thom@chef.io>2017-01-20 13:11:04 +0000
commit33272039bea33e62f8ae25eda047208d4772cf3c (patch)
tree212d507f4a1feda9f46596fed0b7607700358f14 /spec/unit/system_spec.rb
parent60c7fd2a22cc95a8e52e9c0579ed7d49c531635a (diff)
downloadohai-33272039bea33e62f8ae25eda047208d4772cf3c.tar.gz
Only explicitly initialize a logger when neededtm/fix_app_logging
When we're running Ohai as a standalone application, we need to fire up the logger with our desired location, but when we're run from inside Chef, we're passed the client's loggers. Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec/unit/system_spec.rb')
-rw-r--r--spec/unit/system_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb
index 0144ff61..11bec51c 100644
--- a/spec/unit/system_spec.rb
+++ b/spec/unit/system_spec.rb
@@ -101,7 +101,6 @@ describe "Ohai::System" do
it "configures logging" do
log_level = :debug
Ohai.config[:log_level] = log_level
- expect(Ohai::Log).to receive(:init).with(Ohai.config[:log_location])
expect(Ohai::Log).to receive(:level=).with(log_level)
Ohai::System.new
end