diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-05 17:16:51 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-05 17:16:51 -0700 |
commit | d176c42c151fe37401bbe42a470ff90f6f4b20c2 (patch) | |
tree | a3845b9cb66a2a2db61b7d7650b17706fff0f230 /lib/chef/application.rb | |
parent | 1e241b3f4327dfad0c26d141fe64eacd1d89494b (diff) | |
download | chef-d176c42c151fe37401bbe42a470ff90f6f4b20c2.tar.gz |
fix logger logic with is_default? from new mixlib-configchef-nolan/double-stdout
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/application.rb')
-rw-r--r-- | lib/chef/application.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb index 9df8de156a..81637eabb8 100644 --- a/lib/chef/application.rb +++ b/lib/chef/application.rb @@ -205,11 +205,7 @@ class Chef # Based on config and whether or not STDOUT is a tty, should we setup a # secondary logger for stdout? def want_additional_logger? - ( !log_location_default? ) && STDOUT.tty? && !Chef::Config[:daemonize] - end - - def log_location_default? - Chef::Config.configurables[:log_location].instance_variable_get(:@default_value).inspect == Chef::Config[:log_location].inspect + Chef::Config.is_default?(:log_location) && Chef::Config[:log_location].tty? && !Chef::Config[:daemonize] end def configure_stdout_logger |