From a2eaa533bdbf21b13c7db9d8555596905271718e Mon Sep 17 00:00:00 2001 From: Ganga Mahesh Siddem Date: Mon, 31 Jan 2022 16:28:16 -0800 Subject: [PATCH] fix logger exception --- .../ruby/lib/application_insights/channel/sender_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/ruby/lib/application_insights/channel/sender_base.rb b/source/plugins/ruby/lib/application_insights/channel/sender_base.rb index a6b7966db..e5a4dea62 100644 --- a/source/plugins/ruby/lib/application_insights/channel/sender_base.rb +++ b/source/plugins/ruby/lib/application_insights/channel/sender_base.rb @@ -23,7 +23,7 @@ def initialize(service_endpoint_uri, logger, proxy = {}) @service_endpoint_uri = service_endpoint_uri @queue = nil @send_buffer_size = 100 - if !logger.nil? && !logger.empty? + if !logger.nil? @logger = logger else @logger = Logger.new(STDOUT)