summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-10-23 09:34:31 -0700
committerGitHub <noreply@github.com>2018-10-23 09:34:31 -0700
commit26c57b394dbecd21b80efa3feda3027e6a6839fc (patch)
treedcaf9bcf1bce6464b88ab81459b2ed4b906874cb
parent2e93478749af50eebfdf885dcbfee92cb6e7c688 (diff)
parente8fa4f16e8a7a24b5d66e0beb5bb90dd74496190 (diff)
downloadchef-26c57b394dbecd21b80efa3feda3027e6a6839fc.tar.gz
Merge pull request #7698 from MsysTechnologiesllc/dh/MSYS-887_fix_dup_logger_chef
[chef/chef]Fix duplicate logs
-rw-r--r--lib/chef/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 81637eabb8..a63d8218f4 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.is_default?(:log_location) && Chef::Config[:log_location].tty? && !Chef::Config[:daemonize]
+ ( Chef::Config[:log_location].class != IO ) && STDOUT.tty? && !Chef::Config[:daemonize]
end
def configure_stdout_logger