1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 22:29:38 +02:00

Logtail updates
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Josh Pigford 2025-06-10 05:10:57 -05:00
parent 019a0d873c
commit dab693d74f

View file

@ -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)