From dd09d560d5293daf57a3a28792e9619f11f3ada0 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Thu, 11 Jan 2024 07:35:04 -0800 Subject: [PATCH] fix: logic error when setting new relic logging forwarding (#8687) Co-authored-by: Vishnu Narayanan --- config/newrelic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/newrelic.yml b/config/newrelic.yml index 847b693da..e1482e4a1 100644 --- a/config/newrelic.yml +++ b/config/newrelic.yml @@ -29,8 +29,8 @@ common: &default_settings # independently. If `false`, all logging-related features are disabled. enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_ENABLED', false) %> forwarding: - # If `true`, the agent captures log records emitted by this application. - enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED', true) %> + # If `true`, the agent captures log records emitted by this application + enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED', true) == "false" ? false : true %> # Defines the maximum number of log records to buffer in memory at a time. max_samples_stored: 30000 metrics: