diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-06 21:57:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 21:57:52 -0700 |
commit | b98c6a75b3edbac1c3acc191e8a5b935335b2ee9 (patch) | |
tree | bf33e9ab752845fcd5f10732b0de4e9649e574cf /lib | |
parent | 71d6ffa5a7aba4187b724179f8f0004d274a7c33 (diff) | |
parent | d176c42c151fe37401bbe42a470ff90f6f4b20c2 (diff) | |
download | chef-b98c6a75b3edbac1c3acc191e8a5b935335b2ee9.tar.gz |
Merge pull request #7401 from chef/nolan/double-stdout
Fix dupe stdout_logger
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb index 811c713464..81637eabb8 100644 --- a/lib/chef/application.rb +++ b/lib/chef/application.rb @@ -205,7 +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? - !( chef_config[:log_location].is_a?(IO) && chef_config[:log_location].tty? ) && !chef_config[:daemonize] + Chef::Config.is_default?(:log_location) && Chef::Config[:log_location].tty? && !Chef::Config[:daemonize] end def configure_stdout_logger |