summaryrefslogtreecommitdiff
path: root/lib/chef/application.rb
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-10-23 12:24:02 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-10-23 17:49:15 +0530
commite8fa4f16e8a7a24b5d66e0beb5bb90dd74496190 (patch)
tree7bd3c17f93cb6f48cc5ecd83854c7adb981828d4 /lib/chef/application.rb
parent68cada49a89f33b8d82e5ec080aa3fbd8b265831 (diff)
downloadchef-e8fa4f16e8a7a24b5d66e0beb5bb90dd74496190.tar.gz
fixed review comments
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib/chef/application.rb')
-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 ca653e3375..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?(Chef::Config[:log_location]) || STDOUT.closed? || Chef::Config[:daemonize])
+ ( Chef::Config[:log_location].class != IO ) && STDOUT.tty? && !Chef::Config[:daemonize]
end
def configure_stdout_logger