From dab693d74f5c2a70f914119a9235f28c7fb9264e Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Tue, 10 Jun 2025 05:10:57 -0500 Subject: [PATCH] Logtail updates --- config/environments/production.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index e8327dc6..671b5239 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -49,10 +49,10 @@ Rails.application.configure do config.assume_ssl = ActiveModel::Type::Boolean.new.cast(ENV.fetch("RAILS_ASSUME_SSL", true)) # Log to Logtail if API key is present, otherwise log to STDOUT - base_logger = if ENV["LOGTAIL_API_KEY"].present? + base_logger = if ENV["LOGTAIL_API_KEY"].present? && ENV["LOGTAIL_INGESTING_HOST"].present? Logtail::Logger.create_default_logger( ENV["LOGTAIL_API_KEY"], - telemetry_host: "in.logs.betterstack.com" + ingesting_host: ENV["LOGTAIL_INGESTING_HOST"] ) else ActiveSupport::Logger.new(STDOUT)