summaryrefslogtreecommitdiff
path: root/lib/ohai/system.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 /lib/ohai/system.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 'lib/ohai/system.rb')
-rw-r--r--lib/ohai/system.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb
index c55383ca..01ee6463 100644
--- a/lib/ohai/system.rb
+++ b/lib/ohai/system.rb
@@ -220,10 +220,6 @@ module Ohai
end
def configure_logging
- return if Ohai::Log.configured?
-
- Ohai::Log.init(Ohai.config[:log_location])
-
if Ohai.config[:log_level] == :auto
Ohai::Log.level = :info
else