diff options
author | Thom May <thom@chef.io> | 2016-08-12 14:52:53 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-08-12 15:03:12 +0100 |
commit | 5481158a3514c7b92e9fd7793f09f6c9dc2e146a (patch) | |
tree | 2f9eb895cc2983ddff28fbe1b959b7cba366b3ce /lib/ohai/system.rb | |
parent | b2489a23ac0320139db1ae86ddb0fa6d9c1b257a (diff) | |
download | ohai-5481158a3514c7b92e9fd7793f09f6c9dc2e146a.tar.gz |
only configure logging if we musttm/less_greedy_init
Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'lib/ohai/system.rb')
-rw-r--r-- | lib/ohai/system.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb index cc332164..17642814 100644 --- a/lib/ohai/system.rb +++ b/lib/ohai/system.rb @@ -220,6 +220,8 @@ module Ohai end def configure_logging + return if Ohai::Log.configured? + Ohai::Log.init(Ohai.config[:log_location]) if Ohai.config[:log_level] == :auto |