Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Logtail updates

Josh Pigforddab693d74f5c
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)